Home
last modified time | relevance | path

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

/security/smack/
Dsmack_access.c244 static inline void smack_str_from_perm(char *string, int access) in smack_str_from_perm() argument
248 string[i++] = 'r'; in smack_str_from_perm()
250 string[i++] = 'w'; in smack_str_from_perm()
252 string[i++] = 'x'; in smack_str_from_perm()
254 string[i++] = 'a'; in smack_str_from_perm()
256 string[i++] = 't'; in smack_str_from_perm()
257 string[i] = '\0'; in smack_str_from_perm()
334 struct smack_known *smk_find_entry(const char *string) in smk_find_entry() argument
339 if (strcmp(skp->smk_known, string) == 0) in smk_find_entry()
353 char *smk_parse_smack(const char *string, int len) in smk_parse_smack() argument
[all …]
Dsmack.h209 char *smk_parse_smack(const char *string, int len);
Dsmackfs.c254 static int smk_perm_from_str(const char *string) in smk_perm_from_str() argument
259 for (cp = string; ; cp++) in smk_perm_from_str()
/security/tomoyo/
Dutil.c131 bool tomoyo_permstr(const char *string, const char *keyword) in tomoyo_permstr() argument
133 const char *cp = strstr(string, keyword); in tomoyo_permstr()
135 return cp == string || *(cp - 1) == '/'; in tomoyo_permstr()
443 static bool tomoyo_correct_word2(const char *string, size_t len) in tomoyo_correct_word2() argument
445 const char *const start = string; in tomoyo_correct_word2()
453 c = *string++; in tomoyo_correct_word2()
457 c = *string++; in tomoyo_correct_word2()
473 if (string - 3 < start || *(string - 3) != '/') in tomoyo_correct_word2()
478 if (*string != '/') in tomoyo_correct_word2()
490 d = *string++; in tomoyo_correct_word2()
[all …]
Dgc.c70 static bool tomoyo_name_used_by_io_buffer(const char *string) in tomoyo_name_used_by_io_buffer() argument
73 const size_t size = strlen(string) + 1; in tomoyo_name_used_by_io_buffer()
84 if (w < string || w > string + size) in tomoyo_name_used_by_io_buffer()
DKconfig56 string "Location of userspace policy loader"
66 string "Trigger for calling userspace policy loader"
Dcommon.c256 static void tomoyo_set_string(struct tomoyo_io_buffer *head, const char *string) in tomoyo_set_string() argument
259 head->r.w[head->r.w_pos++] = string; in tomoyo_set_string()
545 static s8 tomoyo_find_yesno(const char *string, const char *find) in tomoyo_find_yesno() argument
547 const char *cp = strstr(string, find); in tomoyo_find_yesno()
567 static void tomoyo_set_uint(unsigned int *i, const char *string, in tomoyo_set_uint() argument
570 const char *cp = strstr(string, find); in tomoyo_set_uint()
Dcommon.h924 bool tomoyo_correct_word(const char *string);
941 bool tomoyo_permstr(const char *string, const char *keyword);
/security/apparmor/include/
Dapparmorfs.h35 char *string; member
50 .v_type = AA_FS_TYPE_STRING, .v.string = (_value), \
Dprocattr.h21 int aa_getprocattr(struct aa_profile *profile, char **string);
/security/apparmor/
Dpolicy_unpack.c252 static int unpack_str(struct aa_ext *e, const char **string, const char *name) in unpack_str() argument
257 *string = NULL; in unpack_str()
264 *string = src_str; in unpack_str()
274 static int unpack_strdup(struct aa_ext *e, char **string, const char *name) in unpack_strdup() argument
279 *string = NULL; in unpack_strdup()
284 *string = kmemdup(tmp, res, GFP_KERNEL); in unpack_strdup()
285 if (!*string) { in unpack_strdup()
Dprocattr.c36 int aa_getprocattr(struct aa_profile *profile, char **string) in aa_getprocattr() argument
76 *string = str; in aa_getprocattr()
Dapparmorfs.c159 seq_printf(seq, "%s\n", fs_file->v.string); in aa_fs_seq_show()
/security/
DKconfig171 string