Lines Matching refs:profile
309 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument
311 switch (AUDIT_MODE(profile)) { in aa_apply_modes_to_perms()
326 if (KILL_MODE(profile)) in aa_apply_modes_to_perms()
328 else if (COMPLAIN_MODE(profile)) in aa_apply_modes_to_perms()
330 else if (USER_MODE(profile)) in aa_apply_modes_to_perms()
334 void aa_profile_match_label(struct aa_profile *profile, in aa_profile_match_label() argument
345 aa_label_match(profile, rules, label, state, false, request, perms); in aa_profile_match_label()
350 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm() argument
354 struct aa_ruleset *rules = list_first_entry(&profile->rules, in aa_profile_label_perm()
358 aad(sa)->label = &profile->label; in aa_profile_label_perm()
362 aa_profile_match_label(profile, rules, &target->label, type, request, in aa_profile_label_perm()
364 aa_apply_modes_to_perms(profile, &perms); in aa_profile_label_perm()
366 return aa_check_perms(profile, &perms, request, sa, aa_audit_perms_cb); in aa_profile_label_perm()
387 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms() argument
421 aad(sa)->label = &profile->label; in aa_check_perms()