Lines Matching refs:perms
134 struct aa_perms *perms, const char *info, int error) in audit_mount() argument
140 u32 mask = perms->audit; in audit_mount()
153 request = request & ~perms->allow; in audit_mount()
155 if (request & perms->kill) in audit_mount()
159 if ((request & perms->quiet) && in audit_mount()
162 request &= ~perms->quiet; in audit_mount()
173 if (data && (perms->audit & AA_AUDIT_DATA)) in audit_mount()
216 struct aa_perms perms = { in compute_mnt_perms() local
223 return perms; in compute_mnt_perms()
242 void *data, bool binary, struct aa_perms *perms) in do_match_mnt() argument
247 AA_BUG(!perms); in do_match_mnt()
269 *perms = compute_mnt_perms(dfa, state); in do_match_mnt()
270 if (perms->allow & AA_MAY_MOUNT) in do_match_mnt()
274 if (data && !binary && (perms->allow & AA_MNT_CONT_MATCH)) { in do_match_mnt()
282 *perms = compute_mnt_perms(dfa, state); in do_match_mnt()
283 if (perms->allow & AA_MAY_MOUNT) in do_match_mnt()
321 struct aa_perms perms = { }; in match_mnt_path_str() local
346 mntpnt, devname, type, flags, data, binary, &perms); in match_mnt_path_str()
355 flags, data, AA_MAY_MOUNT, &perms, info, error); in match_mnt_path_str()
585 struct aa_perms perms = { }; in profile_umount() local
604 perms = compute_mnt_perms(profile->policy.dfa, state); in profile_umount()
605 if (AA_MAY_UMOUNT & ~perms.allow) in profile_umount()
610 AA_MAY_UMOUNT, &perms, info, error); in profile_umount()
646 struct aa_perms perms = { }; in build_pivotroot() local
675 perms = compute_mnt_perms(profile->policy.dfa, state); in build_pivotroot()
677 if (AA_MAY_PIVOTROOT & perms.allow) in build_pivotroot()
683 &perms, info, error); in build_pivotroot()