Lines Matching full:profile

48  * aa_split_fqname - split a fqname into a profile and namespace name
49 * @fqname: a full qualified name in namespace profile format (NOT NULL)
52 * Returns: profile name or NULL if one is not specified
54 * Split a namespace name from a profile name (see policy.c for naming
76 /* a ns name without a following profile is allowed */ in aa_split_fqname()
128 /* a ns name without a following profile is allowed */ in aa_splitn_fqname()
140 * aa_info_message - log a none profile related status message
303 * aa_apply_modes_to_perms - apply namespace and profile flags to perms
304 * @profile: that perms where computed from
307 * TODO: split into profile and ns based flags for when accumulating perms
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()
371 * @profile: profile being checked
380 * Note: profile audit modes need to be set before calling by setting the
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()