Home
last modified time | relevance | path

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

/security/apparmor/
A Dsecid.c51 struct lsm_context *cp) in apparmor_label_to_secctx() argument
63 if (cp) in apparmor_label_to_secctx()
72 if (cp) { in apparmor_label_to_secctx()
73 cp->len = len; in apparmor_label_to_secctx()
74 cp->id = LSM_ID_APPARMOR; in apparmor_label_to_secctx()
84 return apparmor_label_to_secctx(label, cp); in apparmor_secid_to_secctx()
93 return apparmor_label_to_secctx(label, cp); in apparmor_lsmprop_to_secctx()
111 if (cp->id == LSM_ID_APPARMOR) { in apparmor_release_secctx()
112 kfree(cp->context); in apparmor_release_secctx()
113 cp->context = NULL; in apparmor_release_secctx()
[all …]
/security/tomoyo/
A Daudit.c27 char *cp; in tomoyo_print_bprm() local
42 cp += 11; in tomoyo_print_bprm()
55 *cp++ = '"'; in tomoyo_print_bprm()
63 *cp++ = c; in tomoyo_print_bprm()
65 *cp++ = '"'; in tomoyo_print_bprm()
66 *cp++ = ' '; in tomoyo_print_bprm()
81 cp += 4; in tomoyo_print_bprm()
84 cp += 11; in tomoyo_print_bprm()
93 cp += 4; in tomoyo_print_bprm()
102 *cp++ = '}'; in tomoyo_print_bprm()
[all …]
A Drealpath.c28 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 …]
A Dcommon.c549 if (cp) { in tomoyo_find_yesno()
573 if (cp) in tomoyo_set_uint()
670 char *cp; in tomoyo_write_profile() local
684 if (!cp) in tomoyo_write_profile()
1207 if (strncmp(data, cp, strlen(cp) - 1)) in tomoyo_write_domain()
2000 while (*cp && *cp >= '0' && *cp <= '9') in tomoyo_numscan()
2001 cp++; in tomoyo_numscan()
2039 cp--; in tomoyo_patternize_path()
2087 if (*cp) in tomoyo_patternize_path()
2110 cp = strchr(cp + 1, '\n'); in tomoyo_add_entry()
[all …]
A Dutil.c118 if (cp) in tomoyo_permstr()
119 return cp == string || *(cp - 1) == '/'; in tomoyo_permstr()
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()
203 if (cp == ep) in tomoyo_parse_ulong()
569 if (!cp) in tomoyo_correct_domain()
593 if (!cp) in tomoyo_domain_def()
969 const char *cp; in tomoyo_get_exe() local
[all …]
A Dcondition.c170 if (cp) { in tomoyo_scan_bprm()
263 if (cp == start || *start++ != '"' || *cp != '"') in tomoyo_get_dqword()
265 *cp = '\0'; in tomoyo_get_dqword()
325 if (*cp-- != ']' || *cp != '"') in tomoyo_parse_envp()
327 *cp = '\0'; in tomoyo_parse_envp()
467 if (cp) in tomoyo_get_transit_preference()
468 *cp = '\0'; in tomoyo_get_transit_preference()
472 if (cp) in tomoyo_get_transit_preference()
473 *cp = ' '; in tomoyo_get_transit_preference()
515 char *cp; in tomoyo_get_condition() local
[all …]
A 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()
795 char *cp; in tomoyo_find_next_domain() local
798 cp = strrchr(ee->tmp, ' '); in tomoyo_find_next_domain()
799 if (cp) in tomoyo_find_next_domain()
800 *cp = '\0'; in tomoyo_find_next_domain()
/security/apparmor/include/
A Dsecid.h28 int apparmor_secid_to_secctx(u32 secid, struct lsm_context *cp);
29 int apparmor_lsmprop_to_secctx(struct lsm_prop *prop, struct lsm_context *cp);
31 void apparmor_release_secctx(struct lsm_context *cp);
/security/smack/
A Dsmackfs.c264 const char *cp; in smk_perm_from_str() local
266 for (cp = string; ; cp++) in smk_perm_from_str()
267 switch (*cp) { in smk_perm_from_str()
320 const char *cp; in smk_fill_rule() local
333 if (IS_ERR(cp)) in smk_fill_rule()
336 kfree(cp); in smk_fill_rule()
342 if (IS_ERR(cp)) in smk_fill_rule()
345 kfree(cp); in smk_fill_rule()
2509 const char *cp; in smk_write_revoke_subj() local
2530 if (IS_ERR(cp)) { in smk_write_revoke_subj()
[all …]
A Dsmack_access.c495 unsigned char *cp; in smk_netlbl_mls() local
505 for (cat = 1, cp = catset, byte = 0; byte < len; cp++, byte++) in smk_netlbl_mls()
507 if ((m & *cp) == 0) in smk_netlbl_mls()
A Dsmack_lsm.c3703 char *cp; in smack_getprocattr() local
3710 if (cp == NULL) in smack_getprocattr()
3713 slen = strlen(cp); in smack_getprocattr()
3714 *value = cp; in smack_getprocattr()
4793 if (cp) { in smack_to_secctx()
4794 cp->context = skp->smk_known; in smack_to_secctx()
4795 cp->len = len; in smack_to_secctx()
4796 cp->id = LSM_ID_SMACK; in smack_to_secctx()
4821 struct lsm_context *cp) in smack_lsmprop_to_secctx() argument
4867 cp->context = skp->smk_known; in smack_inode_getsecctx()
[all …]
/security/
A Dsecurity.c587 char *cp; in lsm_append() local
597 cp = kasprintf(GFP_KERNEL, "%s,%s", *result, new); in lsm_append()
598 if (cp == NULL) in lsm_append()
601 *result = cp; in lsm_append()
4337 return call_int_hook(secid_to_secctx, secid, cp); in security_secid_to_secctx()
4355 return call_int_hook(lsmprop_to_secctx, prop, cp); in security_lsmprop_to_secctx()
4382 void security_release_secctx(struct lsm_context *cp) in security_release_secctx() argument
4384 call_void_hook(release_secctx, cp); in security_release_secctx()
4385 memset(cp, 0, sizeof(*cp)); in security_release_secctx()
4457 memset(cp, 0, sizeof(*cp)); in security_inode_getsecctx()
[all …]
/security/selinux/
A Dhooks.c2899 cp->id = LSM_ID_SELINUX; in selinux_dentry_init_security()
2900 return security_sid_to_context(newsid, &cp->context, &cp->len); in selinux_dentry_init_security()
6795 if (cp) { in selinux_secid_to_secctx()
6796 cp->id = LSM_ID_SELINUX; in selinux_secid_to_secctx()
6797 ret = security_sid_to_context(secid, &cp->context, &cp->len); in selinux_secid_to_secctx()
6800 return cp->len; in selinux_secid_to_secctx()
6823 kfree(cp->context); in selinux_release_secctx()
6824 cp->context = NULL; in selinux_release_secctx()
6825 cp->id = LSM_ID_UNDEF; in selinux_release_secctx()
6866 cp->len = len; in selinux_inode_getsecctx()
[all …]

Completed in 813 milliseconds