Lines Matching refs:profile
284 void aa_apply_modes_to_perms(struct aa_profile *profile, struct aa_perms *perms) in aa_apply_modes_to_perms() argument
286 switch (AUDIT_MODE(profile)) { in aa_apply_modes_to_perms()
301 if (KILL_MODE(profile)) in aa_apply_modes_to_perms()
303 else if (COMPLAIN_MODE(profile)) in aa_apply_modes_to_perms()
378 void aa_profile_match_label(struct aa_profile *profile, struct aa_label *label, in aa_profile_match_label() argument
384 state = aa_dfa_next(profile->policy.dfa, in aa_profile_match_label()
385 profile->policy.start[AA_CLASS_LABEL], in aa_profile_match_label()
387 aa_label_match(profile, label, state, false, request, perms); in aa_profile_match_label()
392 int aa_profile_label_perm(struct aa_profile *profile, struct aa_profile *target, in aa_profile_label_perm() argument
398 aad(sa)->label = &profile->label; in aa_profile_label_perm()
402 aa_profile_match_label(profile, &target->label, type, request, &perms); in aa_profile_label_perm()
403 aa_apply_modes_to_perms(profile, &perms); in aa_profile_label_perm()
405 return aa_check_perms(profile, &perms, request, sa, aa_audit_perms_cb); in aa_profile_label_perm()
426 int aa_check_perms(struct aa_profile *profile, struct aa_perms *perms, in aa_check_perms() argument
463 aad(sa)->label = &profile->label; in aa_check_perms()