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()
223 void *data, bool binary, struct aa_perms *perms) in do_match_mnt() argument
229 AA_BUG(!policy->perms); in do_match_mnt()
230 AA_BUG(!perms); in do_match_mnt()
252 *perms = *aa_lookup_perms(policy, state); in do_match_mnt()
253 if (perms->allow & AA_MAY_MOUNT) in do_match_mnt()
257 if (data && !binary && (perms->allow & AA_MNT_CONT_MATCH)) { in do_match_mnt()
265 *perms = *aa_lookup_perms(policy, state); in do_match_mnt()
266 if (perms->allow & AA_MAY_MOUNT) in do_match_mnt()
304 struct aa_perms perms = { }; in match_mnt_path_str() local
331 mntpnt, devname, type, flags, data, binary, &perms); in match_mnt_path_str()
340 flags, data, AA_MAY_MOUNT, &perms, info, error); in match_mnt_path_str()
574 struct aa_perms perms = { }; in profile_umount() local
593 perms = *aa_lookup_perms(&rules->policy, state); in profile_umount()
594 if (AA_MAY_UMOUNT & ~perms.allow) in profile_umount()
599 AA_MAY_UMOUNT, &perms, info, error); in profile_umount()
637 struct aa_perms perms = { }; in build_pivotroot() local
666 perms = *aa_lookup_perms(&rules->policy, state); in build_pivotroot()
668 if (AA_MAY_PIVOTROOT & perms.allow) in build_pivotroot()
674 &perms, info, error); in build_pivotroot()