Lines Matching refs:perms
361 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument
365 perms->audit = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
368 perms->quiet = 0; in aa_apply_modes_to_perms()
371 perms->audit = 0; in aa_apply_modes_to_perms()
374 perms->quiet = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
379 perms->kill = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
381 perms->complain = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
383 perms->prompt = ALL_PERMS_MASK; in aa_apply_modes_to_perms()
389 int type, u32 request, struct aa_perms *perms) in aa_profile_match_label() argument
397 aa_label_match(profile, rules, label, state, false, request, perms); in aa_profile_match_label()
418 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms() argument
423 u32 denied = request & (~perms->allow | perms->deny); in aa_check_perms()
427 request &= perms->audit; in aa_check_perms()
436 if (denied & perms->kill) in aa_check_perms()
438 else if (denied == (denied & perms->complain)) in aa_check_perms()
443 if (denied == (denied & perms->hide)) in aa_check_perms()
446 denied &= ~perms->quiet; in aa_check_perms()