/security/apparmor/include/ |
D | lib.h | 49 const char *skipn_spaces(const char *str, size_t n); 53 void aa_info_message(const char *str); 66 static inline bool aa_strneq(const char *str, const char *sub, int len) in aa_strneq() argument 68 return !strncmp(str, sub, len) && !str[len]; in aa_strneq() 98 #define str_to_counted(str) \ argument 99 ((struct counted_str *)(str - offsetof(struct counted_str, name))) 107 static inline __counted char *aa_get_str(__counted char *str) in aa_get_str() argument 109 if (str) in aa_get_str() 110 kref_get(&(str_to_counted(str)->count)); in aa_get_str() 112 return str; in aa_get_str() [all …]
|
D | match.h | 125 const char *str, int len); 127 const char *str); 131 const char *str, const char **retpos); 133 const char *str, int n, const char **retpos); 154 const char *str, unsigned int *count);
|
D | label.h | 310 int aa_label_snxprint(char *str, size_t size, struct aa_ns *view, 326 struct aa_label *aa_label_strn_parse(struct aa_label *base, const char *str, 329 struct aa_label *aa_label_parse(struct aa_label *base, const char *str, 332 static inline const char *aa_label_strn_split(const char *str, int n) in aa_label_strn_split() argument 337 state = aa_dfa_matchn_until(stacksplitdfa, DFA_START, str, n, &pos); in aa_label_strn_split() 344 static inline const char *aa_label_str_split(const char *str) in aa_label_str_split() argument 349 state = aa_dfa_match_until(stacksplitdfa, DFA_START, str, &pos); in aa_label_str_split()
|
D | perms.h | 136 void aa_perm_mask_to_str(char *str, size_t str_size, const char *chrs,
|
/security/apparmor/ |
D | label.c | 1459 #define update_for_len(total, len, size, str) \ argument 1467 str += ulen; \ 1484 static int aa_profile_snxprint(char *str, size_t size, struct aa_ns *view, in aa_profile_snxprint() argument 1490 AA_BUG(!str && size != 0); in aa_profile_snxprint() 1504 return snprintf(str, size, "%s", "unconfined"); in aa_profile_snxprint() 1505 return snprintf(str, size, "%s", ns_name); in aa_profile_snxprint() 1513 return snprintf(str, size, ":%s:%s (%s)", ns_name, in aa_profile_snxprint() 1515 return snprintf(str, size, "%s (%s)", profile->base.hname, in aa_profile_snxprint() 1520 return snprintf(str, size, ":%s:%s", ns_name, in aa_profile_snxprint() 1522 return snprintf(str, size, "%s", profile->base.hname); in aa_profile_snxprint() [all …]
|
D | match.c | 401 const char *str, int len) in aa_dfa_match_len() argument 418 equiv[(u8) *str++]); in aa_dfa_match_len() 422 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match_len() 441 const char *str) in aa_dfa_match() argument 457 while (*str) in aa_dfa_match() 459 equiv[(u8) *str++]); in aa_dfa_match() 462 while (*str) in aa_dfa_match() 463 match_char(state, def, base, next, check, (u8) *str++); in aa_dfa_match() 512 const char *str, const char **retpos) in aa_dfa_match_until() argument 529 while (*str) { in aa_dfa_match_until() [all …]
|
D | lib.c | 74 const char *skipn_spaces(const char *str, size_t n) in skipn_spaces() argument 76 for (; n && isspace(*str); --n) in skipn_spaces() 77 ++str; in skipn_spaces() 79 return (char *)str; in skipn_spaces() 124 void aa_info_message(const char *str) in aa_info_message() argument 129 aad(&sa)->info = str; in aa_info_message() 132 printk(KERN_INFO "AppArmor: %s\n", str); in aa_info_message() 137 struct counted_str *str; in aa_str_alloc() local 139 str = kmalloc(sizeof(struct counted_str) + size, gfp); in aa_str_alloc() 140 if (!str) in aa_str_alloc() [all …]
|
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()
|
D | policy_unpack.c | 493 char *str; in unpack_trans_table() local 494 int c, j, pos, size2 = unpack_strdup(e, &str, NULL); in unpack_trans_table() 500 profile->file.trans.table[i] = str; in unpack_trans_table() 502 if (isspace(*str)) in unpack_trans_table() 507 if (!str[j]) { in unpack_trans_table() 512 if (*str == ':') { in unpack_trans_table() 514 if (!str[1]) in unpack_trans_table() 523 str[pos] = ':'; in unpack_trans_table()
|
D | file.c | 44 char str[10]; in audit_file_mask() local 46 aa_perm_mask_to_str(str, sizeof(str), aa_file_perm_chrs, in audit_file_mask() 48 audit_log_string(ab, str); in audit_file_mask()
|
/security/selinux/ss/ |
D | context.h | 33 char *str; /* string representation if context cannot be mapped. */ member 126 if (src->str) { in context_cpy() 127 dst->str = kstrdup(src->str, GFP_ATOMIC); in context_cpy() 128 if (!dst->str) in context_cpy() 132 dst->str = NULL; in context_cpy() 137 kfree(dst->str); in context_cpy() 147 kfree(c->str); in context_destroy() 148 c->str = NULL; in context_destroy() 158 return (c1->len == c2->len && !strcmp(c1->str, c2->str)); in context_cmp()
|
D | services.c | 1221 *scontext = kstrdup(context->str, GFP_ATOMIC); in context_struct_to_string() 1467 char *str; in context_add_hash() local 1470 if (context->str) { in context_add_hash() 1471 context->hash = context_compute_hash(context->str); in context_add_hash() 1474 &str, &len); in context_add_hash() 1477 context->hash = context_compute_hash(str); in context_add_hash() 1478 kfree(str); in context_add_hash() 1506 char *scontext2, *str = NULL; in security_context_to_sid_core() local 1536 str = kstrdup(scontext2, gfp_flags); in security_context_to_sid_core() 1537 if (!str) in security_context_to_sid_core() [all …]
|
D | mls.h | 42 int mls_from_string(struct policydb *p, char *str, struct context *context,
|
/security/tomoyo/ |
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()
|
D | realpath.c | 22 char *tomoyo_encode2(const char *str, int str_len) in tomoyo_encode2() argument 26 const char *p = str; in tomoyo_encode2() 48 p = str; in tomoyo_encode2() 77 char *tomoyo_encode(const char *str) in tomoyo_encode() argument 79 return str ? tomoyo_encode2(str, strlen(str)) : NULL; in tomoyo_encode()
|
D | util.c | 183 u8 tomoyo_parse_ulong(unsigned long *result, char **str) in tomoyo_parse_ulong() argument 185 const char *cp = *str; in tomoyo_parse_ulong() 203 *str = ep; in tomoyo_parse_ulong() 314 static inline bool tomoyo_byte_range(const char *str) in tomoyo_byte_range() argument 316 return *str >= '0' && *str++ <= '3' && in tomoyo_byte_range() 317 *str >= '0' && *str++ <= '7' && in tomoyo_byte_range() 318 *str >= '0' && *str <= '7'; in tomoyo_byte_range()
|
D | common.h | 954 char *tomoyo_encode(const char *str); 955 char *tomoyo_encode2(const char *str, int str_len); 1043 u8 tomoyo_parse_ulong(unsigned long *result, char **str);
|
/security/keys/encrypted-keys/ |
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/ |
D | ima_template.c | 80 static int __init ima_template_setup(char *str) in ima_template_setup() argument 83 int template_len = strlen(str); in ima_template_setup() 94 template_desc = lookup_template_desc(str); in ima_template_setup() 97 str, CONFIG_IMA_DEFAULT_TEMPLATE); in ima_template_setup() 105 if (template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 && in ima_template_setup() 116 static int __init ima_template_fmt_setup(char *str) in ima_template_fmt_setup() argument 123 if (template_desc_init_fields(str, NULL, NULL) < 0) { in ima_template_fmt_setup() 125 str, CONFIG_IMA_DEFAULT_TEMPLATE); in ima_template_fmt_setup() 129 builtin_templates[num_templates - 1].fmt = str; in ima_template_fmt_setup()
|
D | ima_appraise.c | 18 static int __init default_appraise_setup(char *str) in default_appraise_setup() argument 21 if (strncmp(str, "off", 3) == 0) in default_appraise_setup() 23 else if (strncmp(str, "log", 3) == 0) in default_appraise_setup() 25 else if (strncmp(str, "fix", 3) == 0) in default_appraise_setup()
|
D | ima_main.c | 46 static int __init hash_setup(char *str) in hash_setup() argument 55 if (strncmp(str, "sha1", 4) == 0) in hash_setup() 57 else if (strncmp(str, "md5", 3) == 0) in hash_setup() 64 i = match_string(hash_algo_name, HASH_ALGO__LAST, str); in hash_setup()
|
D | ima_policy.c | 211 static int __init default_measure_policy_setup(char *str) in default_measure_policy_setup() argument 224 static int __init policy_setup(char *str) in policy_setup() argument 228 while ((p = strsep(&str, " |\n")) != NULL) { in policy_setup() 245 static int __init default_appraise_policy_setup(char *str) in default_appraise_policy_setup() argument 1302 #define __ima_hook_stringify(str) (#str), argument
|
/security/integrity/ |
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/ |
D | device_cgroup.c | 259 static void set_majmin(char *str, unsigned m) in set_majmin() argument 262 strcpy(str, "*"); in set_majmin() 264 sprintf(str, "%u", m); in set_majmin()
|
/security/integrity/evm/ |
D | evm_main.c | 60 static int __init evm_set_fixmode(char *str) in evm_set_fixmode() argument 62 if (strncmp(str, "fix", 3) == 0) in evm_set_fixmode()
|