Searched refs:cp (Results 1 – 10 of 10) sorted by relevance
/security/tomoyo/ |
D | audit.c | 27 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 …]
|
D | realpath.c | 28 char *cp; in tomoyo_encode2() local 45 cp = kzalloc(len + 10, GFP_NOFS); in tomoyo_encode2() 46 if (!cp) in tomoyo_encode2() 48 cp0 = cp; in tomoyo_encode2() 54 *cp++ = '\\'; in tomoyo_encode2() 55 *cp++ = '\\'; in tomoyo_encode2() 57 *cp++ = c; in tomoyo_encode2() 59 *cp++ = '\\'; in tomoyo_encode2() 60 *cp++ = (c >> 6) + '0'; in tomoyo_encode2() 61 *cp++ = ((c >> 3) & 7) + '0'; in tomoyo_encode2() [all …]
|
D | util.c | 116 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() 187 const char *cp = *str; in tomoyo_parse_ulong() local 191 if (*cp == '0') { in tomoyo_parse_ulong() 192 char c = *(cp + 1); in tomoyo_parse_ulong() 196 cp += 2; in tomoyo_parse_ulong() 199 cp++; in tomoyo_parse_ulong() 202 *result = simple_strtoul(cp, &ep, base); in tomoyo_parse_ulong() 203 if (cp == ep) in tomoyo_parse_ulong() [all …]
|
D | condition.c | 168 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 …]
|
D | common.c | 555 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 …]
|
D | domain.c | 204 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/ |
D | smackfs.c | 263 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 …]
|
D | smack_access.c | 487 unsigned char *cp; in smk_netlbl_mls() local 497 for (cat = 1, cp = catset, byte = 0; byte < len; cp++, byte++) in smk_netlbl_mls() 499 if ((m & *cp) == 0) in smk_netlbl_mls()
|
D | smack_lsm.c | 3515 char *cp; in smack_getprocattr() local 3521 cp = kstrdup(skp->smk_known, GFP_KERNEL); in smack_getprocattr() 3522 if (cp == NULL) in smack_getprocattr() 3525 slen = strlen(cp); in smack_getprocattr() 3526 *value = cp; in smack_getprocattr()
|
/security/ |
D | security.c | 416 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()
|