Home
last modified time | relevance | path

Searched refs:cp (Results 1 – 10 of 10) sorted by relevance

/security/tomoyo/
Daudit.c27 char *cp; in tomoyo_print_bprm() local
39 cp = buffer + len; in tomoyo_print_bprm()
41 memmove(cp, "} envp[]={ ", 11); in tomoyo_print_bprm()
42 cp += 11; in tomoyo_print_bprm()
44 last_start = cp; in tomoyo_print_bprm()
54 if (cp == last_start) in tomoyo_print_bprm()
55 *cp++ = '"'; in tomoyo_print_bprm()
56 if (cp >= buffer + tomoyo_buffer_len - 32) { in tomoyo_print_bprm()
60 *cp++ = '\\'; in tomoyo_print_bprm()
61 *cp++ = '\\'; in tomoyo_print_bprm()
[all …]
Drealpath.c27 char *cp; in tomoyo_encode2() local
44 cp = kzalloc(len + 10, GFP_NOFS); in tomoyo_encode2()
45 if (!cp) in tomoyo_encode2()
47 cp0 = cp; in tomoyo_encode2()
53 *cp++ = '\\'; in tomoyo_encode2()
54 *cp++ = '\\'; in tomoyo_encode2()
56 *cp++ = c; in tomoyo_encode2()
58 *cp++ = '\\'; in tomoyo_encode2()
59 *cp++ = (c >> 6) + '0'; in tomoyo_encode2()
60 *cp++ = ((c >> 3) & 7) + '0'; in tomoyo_encode2()
[all …]
Dutil.c116 const char *cp = strstr(string, keyword); in tomoyo_permstr() local
118 if (cp) in tomoyo_permstr()
119 return cp == string || *(cp - 1) == '/'; in tomoyo_permstr()
185 const char *cp = *str; in tomoyo_parse_ulong() local
189 if (*cp == '0') { in tomoyo_parse_ulong()
190 char c = *(cp + 1); in tomoyo_parse_ulong()
194 cp += 2; in tomoyo_parse_ulong()
197 cp++; in tomoyo_parse_ulong()
200 *result = simple_strtoul(cp, &ep, base); in tomoyo_parse_ulong()
201 if (cp == ep) in tomoyo_parse_ulong()
[all …]
Dcondition.c168 char *cp = strchr(arg_ptr, '='); in tomoyo_scan_bprm() local
170 if (cp) { in tomoyo_scan_bprm()
171 *cp = '\0'; in tomoyo_scan_bprm()
172 if (!tomoyo_envp(arg_ptr, cp + 1, in tomoyo_scan_bprm()
261 char *cp = start + strlen(start) - 1; in tomoyo_get_dqword() local
263 if (cp == start || *start++ != '"' || *cp != '"') in tomoyo_get_dqword()
265 *cp = '\0'; in tomoyo_get_dqword()
323 char *cp = left + strlen(left) - 1; in tomoyo_parse_envp() local
325 if (*cp-- != ']' || *cp != '"') in tomoyo_parse_envp()
327 *cp = '\0'; in tomoyo_parse_envp()
[all …]
Dcommon.c555 const char *cp = strstr(string, find); in tomoyo_find_yesno() local
557 if (cp) { in tomoyo_find_yesno()
558 cp += strlen(find); in tomoyo_find_yesno()
559 if (!strncmp(cp, "=yes", 4)) in tomoyo_find_yesno()
561 else if (!strncmp(cp, "=no", 3)) in tomoyo_find_yesno()
579 const char *cp = strstr(string, find); in tomoyo_set_uint() local
581 if (cp) in tomoyo_set_uint()
582 sscanf(cp + strlen(find), "=%u", i); in tomoyo_set_uint()
678 char *cp; in tomoyo_write_profile() local
684 i = simple_strtoul(data, &cp, 10); in tomoyo_write_profile()
[all …]
Ddomain.c204 const char *cp = strrchr(name, ' '); in tomoyo_last_word() local
206 if (cp) in tomoyo_last_word()
207 return cp + 1; in tomoyo_last_word()
466 const char *cp = domainname; in tomoyo_assign_namespace() local
469 while (*cp && *cp++ != ' ') in tomoyo_assign_namespace()
787 char *cp; in tomoyo_find_next_domain() local
791 cp = strrchr(ee->tmp, ' '); in tomoyo_find_next_domain()
792 if (cp) in tomoyo_find_next_domain()
793 *cp = '\0'; in tomoyo_find_next_domain()
/security/smack/
Dsmackfs.c263 const char *cp; in smk_perm_from_str() local
265 for (cp = string; ; cp++) in smk_perm_from_str()
266 switch (*cp) { in smk_perm_from_str()
319 const char *cp; in smk_fill_rule() local
331 cp = smk_parse_smack(subject, len); in smk_fill_rule()
332 if (IS_ERR(cp)) in smk_fill_rule()
333 return PTR_ERR(cp); in smk_fill_rule()
334 skp = smk_find_entry(cp); in smk_fill_rule()
335 kfree(cp); in smk_fill_rule()
340 cp = smk_parse_smack(object, len); in smk_fill_rule()
[all …]
Dsmack_access.c488 unsigned char *cp; in smk_netlbl_mls() local
498 for (cat = 1, cp = catset, byte = 0; byte < len; cp++, byte++) in smk_netlbl_mls()
500 if ((m & *cp) == 0) in smk_netlbl_mls()
Dsmack_lsm.c3496 char *cp; in smack_getprocattr() local
3502 cp = kstrdup(skp->smk_known, GFP_KERNEL); in smack_getprocattr()
3503 if (cp == NULL) in smack_getprocattr()
3506 slen = strlen(cp); in smack_getprocattr()
3507 *value = cp; in smack_getprocattr()
/security/
Dsecurity.c416 char *cp; in lsm_append() local
426 cp = kasprintf(GFP_KERNEL, "%s,%s", *result, new); in lsm_append()
427 if (cp == NULL) in lsm_append()
430 *result = cp; in lsm_append()