| /security/apparmor/ |
| A D | lib.c | 29 const char *str; member 72 next = str + n; in aa_parse_debug_params() 73 ent = val_table_find_ent(debug_values_table, str, next - str); in aa_parse_debug_params() 78 (int)(next - str), str); in aa_parse_debug_params() 79 str = next + 1; in aa_parse_debug_params() 102 str += len; in val_mask_to_str() 174 ++str; in skipn_spaces() 236 str = kmalloc(struct_size(str, name, size), gfp); in aa_str_alloc() 237 if (!str) in aa_str_alloc() 315 *str = '\0'; in aa_perm_mask_to_str() [all …]
|
| A D | label.c | 1742 str = name; in aa_label_xaudit() 1762 char *str; in aa_label_seq_xprint() local 1771 kfree(str); in aa_label_seq_xprint() 1785 char *str; in aa_label_xprintk() local 1818 for (split = aa_label_strn_split(str, end - str); in label_count_strn_entries() 1820 split = aa_label_strn_split(str, end - str)) { in label_count_strn_entries() 1872 str = skipn_spaces(str, n); in aa_label_strn_parse() 1873 if (str == NULL || (DEBUG_ABS_ROOT && *str == '_' && in aa_label_strn_parse() 1877 len = label_count_strn_entries(str, end - str); in aa_label_strn_parse() 1883 str++; in aa_label_strn_parse() [all …]
|
| A D | match.c | 468 equiv[(u8) *str++]); in aa_dfa_match_len() 506 while (*str) in aa_dfa_match() 508 equiv[(u8) *str++]); in aa_dfa_match() 511 while (*str) in aa_dfa_match() 594 while (*str) { in aa_dfa_match_until() 605 while (*str) { in aa_dfa_match_until() 616 *retpos = str; in aa_dfa_match_until() 678 *retpos = str; in aa_dfa_matchn_until() 724 AA_BUG(!str); in leftmatch_fb() 737 while (*str) { in leftmatch_fb() [all …]
|
| A D | path.c | 25 static int prepend(char **buffer, int buflen, const char *str, int namelen) in prepend() argument 31 memcpy(*buffer, str, namelen); in prepend() 200 char *str = NULL; in aa_path_name() local 201 int error = d_namespace_path(path, buffer, &str, flags, disconnected); in aa_path_name() 214 *name = str; in aa_path_name()
|
| A D | net.c | 76 static void audit_unix_addr(struct audit_buffer *ab, const char *str, in audit_unix_addr() argument 82 audit_log_format(ab, " %s=none", str); in audit_unix_addr() 84 audit_log_format(ab, " %s=", str); in audit_unix_addr() 87 audit_log_format(ab, " %s=\"@", str); in audit_unix_addr() 97 static void audit_unix_sk_addr(struct audit_buffer *ab, const char *str, in audit_unix_sk_addr() argument 106 audit_unix_addr(ab, str, addr, addrlen); in audit_unix_sk_addr() 108 audit_unix_addr(ab, str, NULL, 0); in audit_unix_sk_addr()
|
| A D | file.c | 50 char str[10]; in file_audit_cb() local 53 aa_perm_mask_to_str(str, sizeof(str), aa_file_perm_chrs, in file_audit_cb() 55 audit_log_format(ab, " requested_mask=\"%s\"", str); in file_audit_cb() 58 aa_perm_mask_to_str(str, sizeof(str), aa_file_perm_chrs, in file_audit_cb() 60 audit_log_format(ab, " denied_mask=\"%s\"", str); in file_audit_cb()
|
| A D | policy_unpack.c | 485 char *str; in unpack_trans_table() local 486 int c, j, pos, size2 = aa_unpack_strdup(e, &str, NULL); in unpack_trans_table() 492 table[i] = str; in unpack_trans_table() 494 if (isspace(*str)) in unpack_trans_table() 499 if (!str[j]) { in unpack_trans_table() 504 if (*str == ':') { in unpack_trans_table() 506 if (!str[1]) in unpack_trans_table() 515 str[pos] = ':'; in unpack_trans_table()
|
| /security/apparmor/include/ |
| A D | lib.h | 70 int aa_parse_debug_params(const char *str); 83 void aa_info_message(const char *str); 98 return !strncmp(str, sub, len) && !str[len]; in aa_strneq() 135 #define str_to_counted(str) \ argument 146 if (str) in aa_get_str() 147 kref_get(&(str_to_counted(str)->count)); in aa_get_str() 149 return str; in aa_get_str() 152 static inline void aa_put_str(__counted char *str) in aa_put_str() argument 154 if (str) in aa_put_str() 224 const char *str, int len) in __policy_strn_find() argument [all …]
|
| A D | match.h | 128 const char *str, int len); 130 const char *str); 134 const char *str, const char **retpos); 136 const char *str, int n, const char **retpos); 154 const char *str, unsigned int *count);
|
| A D | label.h | 297 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view, 311 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, 314 struct aa_label *aa_label_parse(struct aa_label *base, const char *str, 317 static inline const char *aa_label_strn_split(const char *str, int n) in aa_label_strn_split() argument 322 state = aa_dfa_matchn_until(stacksplitdfa, DFA_START, str, n, &pos); in aa_label_strn_split() 329 static inline const char *aa_label_str_split(const char *str) in aa_label_str_split() argument 334 state = aa_dfa_match_until(stacksplitdfa, DFA_START, str, &pos); in aa_label_str_split()
|
| /security/selinux/ss/ |
| A D | context.h | 34 char *str; /* string representation if context cannot be mapped. */ member 163 if (src->str) { in context_cpy() 164 dst->str = kstrdup(src->str, GFP_ATOMIC); in context_cpy() 165 if (!dst->str) in context_cpy() 169 dst->str = NULL; in context_cpy() 174 kfree(dst->str); in context_cpy() 175 dst->str = NULL; in context_cpy() 185 kfree(c->str); in context_destroy() 186 c->str = NULL; in context_destroy() 195 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_equal()
|
| A D | sidtab.c | 29 char str[] __counted_by(len); 349 context->str); in sidtab_context_to_sid() 564 const char *str, u32 str_len) in sidtab_sid2str_put() argument 583 cache = kmalloc(struct_size(cache, str, str_len), GFP_ATOMIC); in sidtab_sid2str_put() 598 memcpy(cache->str, str, str_len); in sidtab_sid2str_put() 625 *out = kmemdup(cache->str, cache->len, GFP_ATOMIC); in sidtab_sid2str_get()
|
| A D | sidtab.h | 143 const char *str, u32 str_len); 149 const char *str, u32 str_len) in sidtab_sid2str_put() argument
|
| A D | context.c | 27 return full_name_hash(NULL, c->str, c->len); in context_compute_hash()
|
| A D | services.c | 1592 if (!str) in security_context_to_sid_core() 1603 context.str = str; in security_context_to_sid_core() 1605 str = NULL; in security_context_to_sid_core() 1611 if (context.str) { in security_context_to_sid_core() 1612 str = context.str; in security_context_to_sid_core() 1623 kfree(str); in security_context_to_sid_core() 2068 if (oldc->str) { in services_convert_context() 2084 newc->str = s; in services_convert_context() 2096 oldc->str); in services_convert_context() 2163 newc->str = s; in services_convert_context() [all …]
|
| /security/tomoyo/ |
| A D | load_policy.c | 24 static int __init tomoyo_loader_setup(char *str) in tomoyo_loader_setup() argument 26 tomoyo_loader = str; in tomoyo_loader_setup() 64 static int __init tomoyo_trigger_setup(char *str) in tomoyo_trigger_setup() argument 66 tomoyo_trigger = str; in tomoyo_trigger_setup()
|
| A D | realpath.c | 23 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument 27 const char *p = str; in tomoyo_encode2() 49 p = str; in tomoyo_encode2() 78 char *tomoyo_encode(const char *str) in tomoyo_encode() argument 80 return str ? tomoyo_encode2(str, strlen(str)) : NULL; in tomoyo_encode()
|
| A D | util.c | 185 u8 tomoyo_parse_ulong(unsigned long *result, char **str) in tomoyo_parse_ulong() argument 187 const char *cp = *str; in tomoyo_parse_ulong() 205 *str = ep; in tomoyo_parse_ulong() 316 static inline bool tomoyo_byte_range(const char *str) in tomoyo_byte_range() argument 318 return *str >= '0' && *str++ <= '3' && in tomoyo_byte_range() 319 *str >= '0' && *str++ <= '7' && in tomoyo_byte_range() 320 *str >= '0' && *str <= '7'; in tomoyo_byte_range()
|
| /security/keys/encrypted-keys/ |
| A D | encrypted.h | 40 static inline void dump_hmac(const char *str, const u8 *digest, in dump_hmac() argument 43 if (str) in dump_hmac() 44 pr_info("encrypted_key: %s", str); in dump_hmac() 62 static inline void dump_hmac(const char *str, const u8 *digest, in dump_hmac() argument
|
| /security/integrity/ima/ |
| A D | ima_template.c | 104 static int __init ima_template_setup(char *str) in ima_template_setup() argument 107 int template_len = strlen(str); in ima_template_setup() 119 template_desc = lookup_template_desc(str); in ima_template_setup() 122 str, CONFIG_IMA_DEFAULT_TEMPLATE); in ima_template_setup() 130 if (template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 && in ima_template_setup() 142 static int __init ima_template_fmt_setup(char *str) in ima_template_fmt_setup() argument 149 if (template_desc_init_fields(str, NULL, NULL) < 0) { in ima_template_fmt_setup() 151 str, CONFIG_IMA_DEFAULT_TEMPLATE); in ima_template_fmt_setup() 155 builtin_templates[num_templates - 1].fmt = str; in ima_template_fmt_setup()
|
| A D | ima_appraise.c | 29 const char *str = ima_appraise_cmdline_default; in ima_appraise_parse_cmdline() local 33 if (!str) in ima_appraise_parse_cmdline() 36 if (strncmp(str, "off", 3) == 0) in ima_appraise_parse_cmdline() 38 else if (strncmp(str, "log", 3) == 0) in ima_appraise_parse_cmdline() 40 else if (strncmp(str, "fix", 3) == 0) in ima_appraise_parse_cmdline() 42 else if (strncmp(str, "enforce", 7) == 0) in ima_appraise_parse_cmdline() 45 pr_err("invalid \"%s\" appraise option", str); in ima_appraise_parse_cmdline() 52 str); in ima_appraise_parse_cmdline()
|
| A D | ima_main.c | 48 static int __init ima_setup(char *str) in ima_setup() argument 55 if (strncmp(str, "off", 3) == 0) in ima_setup() 57 else if (strncmp(str, "on", 2) == 0) in ima_setup() 60 pr_err("Invalid ima setup option: \"%s\" , please specify ima=on|off.", str); in ima_setup() 66 static int __init hash_setup(char *str) in hash_setup() argument 75 if (strncmp(str, "sha1", 4) == 0) { in hash_setup() 77 } else if (strncmp(str, "md5", 3) == 0) { in hash_setup() 81 str, IMA_TEMPLATE_IMA_NAME); in hash_setup() 87 i = match_string(hash_algo_name, HASH_ALGO__LAST, str); in hash_setup() 89 pr_err("invalid hash algorithm \"%s\"", str); in hash_setup()
|
| A D | ima.h | 332 #define __ima_hook_enumify(ENUM, str) ENUM, argument 334 #define __ima_hook_measuring_stringify(ENUM, str) \ argument 335 (__ima_stringify(measuring_ ##str)),
|
| /security/integrity/ |
| A D | integrity_audit.c | 18 static int __init integrity_audit_setup(char *str) in integrity_audit_setup() argument 22 if (!kstrtoul(str, 0, &audit)) in integrity_audit_setup()
|
| /security/ipe/ |
| A D | policy_fs.c | 261 const char *str; in getactive() local 274 str = (p == rcu_access_pointer(ipe_active_policy)) ? "1" : "0"; in getactive() 275 rc = simple_read_from_buffer(data, len, offset, str, 1); in getactive()
|