Lines Matching refs:profile
56 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() argument
68 return aa_audit(AUDIT_APPARMOR_AUTO, profile, &sa, audit_cb); in audit_resource()
85 static int profile_setrlimit(struct aa_profile *profile, unsigned int resource, in profile_setrlimit() argument
90 if (profile->rlimits.mask & (1 << resource) && new_rlim->rlim_max > in profile_setrlimit()
91 profile->rlimits.limits[resource].rlim_max) in profile_setrlimit()
93 return audit_resource(profile, resource, new_rlim->rlim_max, NULL, NULL, in profile_setrlimit()
111 struct aa_profile *profile; in aa_task_setrlimit() local
128 error = fn_for_each(label, profile, in aa_task_setrlimit()
129 audit_resource(profile, resource, in aa_task_setrlimit()
133 error = fn_for_each_confined(label, profile, in aa_task_setrlimit()
134 profile_setrlimit(profile, resource, new_rlim)); in aa_task_setrlimit()