Lines Matching defs:profile
23 * aa_getprocattr - Return the profile information for @profile
24 * @profile: the profile to print profile info about (NOT NULL)
25 * @string: Returns - string containing the profile info (NOT NULL)
29 * Requires: profile != NULL
32 * @profile.
36 int aa_getprocattr(struct aa_profile *profile, char **string)
40 const char *mode_str = aa_profile_mode_names[profile->mode];
42 struct aa_namespace *ns = profile->ns;
57 if (!unconfined(profile))
60 name_len = strlen(profile->base.hname);
71 if (unconfined(profile))
73 sprintf(s, "%s\n", profile->base.hname);
75 sprintf(s, "%s (%s)\n", profile->base.hname, mode_str);