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