Lines Matching full:string

281  * readable string
282 * @string : the string to fill
286 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()
416 * @string: a text string that might be a Smack label
419 * matches the passed string or NULL if not found.
421 struct smack_known *smk_find_entry(const char *string) in smk_find_entry() argument
427 hash = full_name_hash(NULL, string, strlen(string)); in smk_find_entry()
431 if (strcmp(skp->smk_known, string) == 0) in smk_find_entry()
438 * smk_parse_smack - parse smack label from a text string
439 * @string: a text string that might contain a Smack label
444 char *smk_parse_smack(const char *string, int len) in smk_parse_smack() argument
450 len = strlen(string) + 1; in smk_parse_smack()
457 if (string[0] == '-') in smk_parse_smack()
461 if (string[i] > '~' || string[i] <= ' ' || string[i] == '/' || in smk_parse_smack()
462 string[i] == '"' || string[i] == '\\' || string[i] == '\'') in smk_parse_smack()
468 smack = kstrndup(string, i, GFP_NOFS); in smk_parse_smack()
550 * @string: a text string that might be a Smack label
554 * matches the passed string, adding it if necessary,
557 struct smack_known *smk_import_entry(const char *string, int len) in smk_import_entry() argument
563 smack = smk_parse_smack(string, len); in smk_import_entry()