Home
last modified time | relevance | path

Searched refs:string (Results 1 – 18 of 18) sorted by relevance

/security/smack/
Dsmack_access.c286 static inline void smack_str_from_perm(char *string, int access) in smack_str_from_perm() argument
291 string[i++] = 'r'; in smack_str_from_perm()
293 string[i++] = 'w'; in smack_str_from_perm()
295 string[i++] = 'x'; in smack_str_from_perm()
297 string[i++] = 'a'; in smack_str_from_perm()
299 string[i++] = 't'; in smack_str_from_perm()
301 string[i++] = 'l'; in smack_str_from_perm()
302 string[i] = '\0'; in smack_str_from_perm()
420 struct smack_known *smk_find_entry(const char *string) in smk_find_entry() argument
426 hash = full_name_hash(NULL, string, strlen(string)); in smk_find_entry()
[all …]
Dsmack.h303 char *smk_parse_smack(const char *string, int len);
Dsmackfs.c260 static int smk_perm_from_str(const char *string) in smk_perm_from_str() argument
265 for (cp = string; ; cp++) in smk_perm_from_str()
Dsmack_lsm.c714 rc = smack_add_opt(opt, param->string, &fc->security); in smack_fs_context_parse_param()
716 param->string = NULL; in smack_fs_context_parse_param()
/security/apparmor/
Dprocattr.c33 int aa_getprocattr(struct aa_label *label, char **string) in aa_getprocattr() argument
49 *string = kmalloc(len + 2, GFP_KERNEL); in aa_getprocattr()
50 if (!*string) { in aa_getprocattr()
55 len = aa_label_snxprint(*string, len + 2, current_ns, label, in aa_getprocattr()
63 (*string)[len] = '\n'; in aa_getprocattr()
64 (*string)[len + 1] = 0; in aa_getprocattr()
Dpolicy_unpack.c390 static int unpack_str(struct aa_ext *e, const char **string, const char *name) in unpack_str() argument
395 *string = NULL; in unpack_str()
402 *string = src_str; in unpack_str()
413 static int unpack_strdup(struct aa_ext *e, char **string, const char *name) in unpack_strdup() argument
418 *string = NULL; in unpack_strdup()
423 *string = kmemdup(tmp, res, GFP_KERNEL); in unpack_strdup()
424 if (!*string) { in unpack_strdup()
Dapparmorfs.c1001 seq_printf(seq, "%s\n", fs_file->v.string); in aa_sfs_seq_show()
/security/tomoyo/
Dutil.c114 bool tomoyo_permstr(const char *string, const char *keyword) in tomoyo_permstr() argument
116 const char *cp = strstr(string, keyword); in tomoyo_permstr()
119 return cp == string || *(cp - 1) == '/'; in tomoyo_permstr()
433 static bool tomoyo_correct_word2(const char *string, size_t len) in tomoyo_correct_word2() argument
435 const char *const start = string; in tomoyo_correct_word2()
444 c = *string++; in tomoyo_correct_word2()
448 c = *string++; in tomoyo_correct_word2()
464 if (string - 3 < start || *(string - 3) != '/') in tomoyo_correct_word2()
469 if (*string != '/') in tomoyo_correct_word2()
481 d = *string++; in tomoyo_correct_word2()
[all …]
Dgc.c71 static bool tomoyo_name_used_by_io_buffer(const char *string) in tomoyo_name_used_by_io_buffer() argument
74 const size_t size = strlen(string) + 1; in tomoyo_name_used_by_io_buffer()
87 if (w < string || w > string + size) in tomoyo_name_used_by_io_buffer()
DKconfig59 string "Location of userspace policy loader"
69 string "Trigger for calling userspace policy loader"
Dcommon.c259 static void tomoyo_set_string(struct tomoyo_io_buffer *head, const char *string) in tomoyo_set_string() argument
262 head->r.w[head->r.w_pos++] = string; in tomoyo_set_string()
553 static s8 tomoyo_find_yesno(const char *string, const char *find) in tomoyo_find_yesno() argument
555 const char *cp = strstr(string, find); in tomoyo_find_yesno()
576 static void tomoyo_set_uint(unsigned int *i, const char *string, in tomoyo_set_uint() argument
579 const char *cp = strstr(string, find); in tomoyo_set_uint()
Dcommon.h935 bool tomoyo_correct_word(const char *string);
952 bool tomoyo_permstr(const char *string, const char *keyword);
/security/apparmor/include/
Dapparmorfs.h33 char *string; member
48 .v_type = AA_SFS_TYPE_STRING, .v.string = (_value), \
Dprocattr.h14 int aa_getprocattr(struct aa_label *label, char **string);
/security/
DKconfig198 Detect overflows of buffers in common string and memory functions
221 STATIC_USERMODEHELPER_PATH to an empty string.
224 string "Path to the static usermode helper binary"
234 specify an empty string here (i.e. "").
282 string "Ordered list of enabled LSMs"
/security/integrity/evm/
DKconfig70 string "EVM X509 certificate path"
/security/integrity/ima/
DKconfig82 string
113 string
280 string "IMA X509 certificate path"
/security/selinux/
Dhooks.c2862 rc = selinux_add_opt(opt, param->string, &fc->security); in selinux_fs_context_parse_param()
2864 param->string = NULL; in selinux_fs_context_parse_param()