Searched refs:attach (Results 1 – 5 of 5) sorted by relevance
| /security/apparmor/ |
| A D | domain.c | 317 struct aa_attachment *attach = &profile->attach; in aa_xattrs_match() local 320 if (!bprm || !attach->xattr_count) in aa_xattrs_match() 328 for (i = 0; i < attach->xattr_count; i++) { in aa_xattrs_match() 344 perms = aa_lookup_perms(attach->xmatch, state); in aa_xattrs_match() 403 struct aa_attachment *attach = &profile->attach; in find_attach() local 420 if (attach->xmatch->dfa) { in find_attach() 425 state = aa_dfa_leftmatch(attach->xmatch->dfa, in find_attach() 426 attach->xmatch->start[AA_CLASS_XMATCH], in find_attach() 428 perms = aa_lookup_perms(attach->xmatch, state); in find_attach() 436 if (bprm && attach->xattr_count) { in find_attach() [all …]
|
| A D | policy_unpack.c | 545 profile->attach.xattr_count = size; in unpack_xattrs() 546 profile->attach.xattrs = kcalloc(size, sizeof(char *), GFP_KERNEL); in unpack_xattrs() 547 if (!profile->attach.xattrs) in unpack_xattrs() 550 if (!aa_unpack_strdup(e, &profile->attach.xattrs[i], NULL)) in unpack_xattrs() 895 (void) aa_unpack_str(e, &profile->attach.xmatch_str, "attach"); in unpack_profile() 905 if (profile->attach.xmatch->dfa) { in unpack_profile() 910 profile->attach.xmatch_len = tmp; in unpack_profile() 911 profile->attach.xmatch->start[AA_CLASS_XMATCH] = DFA_START; in unpack_profile() 912 if (!profile->attach.xmatch->perms) { in unpack_profile() 913 error = aa_compat_map_xmatch(profile->attach.xmatch); in unpack_profile() [all …]
|
| A D | policy.c | 232 static void free_attachment(struct aa_attachment *attach) in free_attachment() argument 236 for (i = 0; i < attach->xattr_count; i++) in free_attachment() 237 kfree_sensitive(attach->xattrs[i]); in free_attachment() 238 kfree_sensitive(attach->xattrs); in free_attachment() 239 aa_put_pdb(attach->xmatch); in free_attachment() 296 free_attachment(&profile->attach); in aa_free_profile() 658 profile->attach.xmatch = aa_get_pdb(nullpdb); in aa_alloc_null()
|
| A D | apparmorfs.c | 1105 if (profile->attach.xmatch_str) in seq_profile_attach_show() 1106 seq_printf(seq, "%s\n", profile->attach.xmatch_str); in seq_profile_attach_show() 1107 else if (profile->attach.xmatch->dfa) in seq_profile_attach_show() 1135 SEQ_PROFILE_FOPS(attach);
|
| /security/apparmor/include/ |
| A D | policy.h | 247 struct aa_attachment attach; member
|
Completed in 15 milliseconds