Searched defs:str (Results 1 - 25 of 28) sorted by relevance

12

/security/apparmor/
H A Dlib.c64 * @str: message to log
66 void aa_info_message(const char *str) argument
73 aad.info = str;
76 printk(KERN_INFO "AppArmor: %s\n", str);
H A Dpath.c30 static int prepend(char **buffer, int buflen, const char *str, int namelen) argument
36 memcpy(*buffer, str, namelen);
210 char *buf, *str = NULL; local
222 error = get_name_to_buffer(path, flags, buf, size, &str, info);
233 *name = str;
H A Dmatch.c285 * aa_dfa_match_len - traverse @dfa to find state @str stops at
286 * @dfa: the dfa to match @str against (NOT NULL)
288 * @str: the string of bytes to match against the dfa (NOT NULL)
291 * aa_dfa_match_len will match @str against the dfa and return the state it
301 const char *str, int len)
312 /* current state is <state>, matching character *str */
318 pos = base_idx(base[state]) + equiv[(u8) *str++];
327 pos = base_idx(base[state]) + (u8) *str++;
339 * aa_dfa_match - traverse @dfa to find state @str stops at
340 * @dfa: the dfa to match @str agains
300 aa_dfa_match_len(struct aa_dfa *dfa, unsigned int start, const char *str, int len) argument
350 aa_dfa_match(struct aa_dfa *dfa, unsigned int start, const char *str) argument
[all...]
H A Dprocattr.c38 char *str; local
62 s = str = kmalloc(len + 1, GFP_KERNEL); /* + 1 \0 */
63 if (!str)
76 *string = str;
H A Dfile.c32 char str[10]; local
34 char *m = str;
57 audit_log_string(ab, str);
H A Dpolicy.c193 * __policy_strn_find - find a policy that's name matches @len chars of @str
195 * @str: string to search for (NOT NULL)
200 * Returns: unrefcounted policy that match @str or NULL if not found
206 const char *str, int len)
211 if (aa_strneq(policy->name, str, len))
205 __policy_strn_find(struct list_head *head, const char *str, int len) argument
H A Dpolicy_unpack.c391 char *str; local
392 int c, j, size2 = unpack_strdup(e, &str, NULL);
398 profile->file.trans.table[i] = str;
400 if (isspace(*str))
405 if (!str[j])
408 if (*str == ':') {
416 if (!str[1])
H A Dlsm.c751 static int __init apparmor_enabled_setup(char *str) argument
754 int error = kstrtoul(str, 0, &enabled);
/security/integrity/
H A Dintegrity_audit.c21 static int __init integrity_audit_setup(char *str) argument
25 if (!kstrtoul(str, 0, &audit))
/security/keys/encrypted-keys/
H A Dencrypted.h39 static inline void dump_hmac(const char *str, const u8 *digest, argument
42 if (str)
43 pr_info("encrypted_key: %s", str);
61 static inline void dump_hmac(const char *str, const u8 *digest, argument
/security/tomoyo/
H A Dload_policy.c19 * @str: Program to use as a policy loader (e.g. /sbin/tomoyo-init ).
23 static int __init tomoyo_loader_setup(char *str) argument
25 tomoyo_loader = str;
58 * @str: Program to use as an activation trigger (e.g. /sbin/init ).
62 static int __init tomoyo_trigger_setup(char *str) argument
64 tomoyo_trigger = str;
H A Drealpath.c13 * @str: String in binary format.
14 * @str_len: Size of @str in byte.
16 * Returns pointer to @str in ascii format on success, NULL otherwise.
21 char *tomoyo_encode2(const char *str, int str_len) argument
25 const char *p = str;
47 p = str;
69 * @str: String in binary format.
71 * Returns pointer to @str in ascii format on success, NULL otherwise.
76 char *tomoyo_encode(const char *str) argument
78 return str
[all...]
H A Dutil.c190 * @str: Pointer to string to parse.
197 u8 tomoyo_parse_ulong(unsigned long *result, char **str) argument
199 const char *cp = *str;
215 *str = ep;
317 * @str: Pointer to the string.
319 * Returns true if @str is a \ooo style octal value, false otherwise.
324 static inline bool tomoyo_byte_range(const char *str) argument
326 return *str >= '0' && *str++ <= '3' &&
327 *str >
[all...]
H A Dcommon.c1915 * @str: String to truncate.
1917 * Returns length of truncated @str.
1919 static int tomoyo_truncate(char *str) argument
1921 char *start = str;
1922 while (*(unsigned char *) str > (unsigned char) ' ')
1923 str++;
1924 *str = '\0';
/security/apparmor/include/
H A Dapparmor.h67 void aa_info_message(const char *str);
87 * aa_strneq - compare null terminated @str to a non null terminated substring
88 * @str: a null terminated string
92 * The @str string must be full consumed for this to be considered a match
94 static inline bool aa_strneq(const char *str, const char *sub, int len) argument
96 return !strncmp(str, sub, len) && !str[len];
/security/selinux/ss/
H A Dcontext.h32 char *str; /* string representation if context cannot be mapped. */ member in struct:context
124 if (src->str) {
125 dst->str = kstrdup(src->str, GFP_ATOMIC);
126 if (!dst->str)
130 dst->str = NULL;
135 kfree(dst->str);
144 kfree(c->str);
145 c->str = NULL;
153 return (c1->len == c2->len && !strcmp(c1->str, c
[all...]
H A Dmls.c374 * the string `str'. This function will allocate temporary memory with the
377 int mls_from_string(char *str, struct context *context, gfp_t gfp_mask) argument
387 tmpstr = freestr = kstrdup(str, gfp_mask);
H A Dpolicydb.c1091 char *str; local
1093 str = kmalloc(len + 1, flags);
1094 if (!str)
1097 /* it's expected the caller should free the str */
1098 *strp = str;
1100 rc = next_entry(str, fp, len);
1104 str[len] = '\0';
/security/integrity/ima/
H A Dima_template.c45 static int __init ima_template_setup(char *str) argument
48 int template_len = strlen(str);
54 template_desc = lookup_template_desc(str);
62 if (template_len == 3 && strcmp(str, IMA_TEMPLATE_IMA_NAME) == 0 &&
H A Dima_appraise.c22 static int __init default_appraise_setup(char *str) argument
24 if (strncmp(str, "off", 3) == 0)
26 else if (strncmp(str, "log", 3) == 0)
28 else if (strncmp(str, "fix", 3) == 0)
H A Dima_main.c42 static int __init hash_setup(char *str) argument
51 if (strncmp(str, "sha1", 4) == 0)
53 else if (strncmp(str, "md5", 3) == 0)
59 if (strcmp(str, hash_algo_name[i]) == 0) {
H A Dima_policy.c113 static int __init default_measure_policy_setup(char *str) argument
121 static int __init default_appraise_policy_setup(char *str) argument
/security/integrity/evm/
H A Devm_main.c57 static int __init evm_set_fixmode(char *str) argument
59 if (strncmp(str, "fix", 3) == 0)
/security/
H A Ddevice_cgroup.c267 static void set_majmin(char *str, unsigned m) argument
270 strcpy(str, "*");
272 sprintf(str, "%u", m);
/security/selinux/
H A Dselinuxfs.c54 static int __init checkreqprot_setup(char *str) argument
57 if (!kstrtoul(str, 0, &checkreqprot))

Completed in 400 milliseconds

12