Lines Matching refs:perms
247 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument
251 perms->audit = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
254 perms->quiet = 0; in aa_apply_modes_to_perms()
257 perms->audit = 0; in aa_apply_modes_to_perms()
260 perms->quiet = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
265 perms->kill = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
267 perms->complain = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
269 perms->prompt = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
275 int type, u32 request, struct aa_perms *perms) in aa_profile_match_label() argument
283 aa_label_match(profile, rules, label, state, false, request, perms); in aa_profile_match_label()
304 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms() argument
309 u32 denied = request & (~perms->allow | perms->deny); in aa_check_perms()
313 request &= perms->audit; in aa_check_perms()
322 if (denied & perms->kill) in aa_check_perms()
324 else if (denied == (denied & perms->complain)) in aa_check_perms()
329 if (denied == (denied & perms->hide)) in aa_check_perms()
332 denied &= ~perms->quiet; in aa_check_perms()