Lines Matching defs:profile
45 * @profile: profile being enforced (NOT NULL)
52 static int audit_resource(struct aa_profile *profile, unsigned int resource,
64 return aa_audit(AUDIT_APPARMOR_AUTO, profile, &sa, audit_cb);
81 static int profile_setrlimit(struct aa_profile *profile, unsigned int resource,
86 if (profile->rlimits.mask & (1 << resource) && new_rlim->rlim_max >
87 profile->rlimits.limits[resource].rlim_max)
89 return audit_resource(profile, resource, new_rlim->rlim_max, NULL, NULL,
107 struct aa_profile *profile;
118 * the same profile or that the task setting the resource of another
124 error = fn_for_each(label, profile,
125 audit_resource(profile, resource,
129 error = fn_for_each_confined(label, profile,
130 profile_setrlimit(profile, resource, new_rlim));
137 * __aa_transition_rlimits - apply new profile rlimits
151 /* for any rlimits the profile controlled, reset the soft limit
170 /* set any new hard limits as dictated by the new profile */