Lines Matching refs:resource
52 static int audit_resource(struct aa_profile *profile, unsigned int resource, in audit_resource() argument
58 aad(&sa)->rlim.rlim = resource; in audit_resource()
76 int aa_map_resource(int resource) in aa_map_resource() argument
78 return rlim_map[resource]; in aa_map_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()
105 unsigned int resource, struct rlimit *new_rlim) in aa_task_setrlimit() argument
125 audit_resource(profile, resource, in aa_task_setrlimit()
130 profile_setrlimit(profile, resource, new_rlim)); in aa_task_setrlimit()