15 #include <linux/audit.h>
17 #include "include/audit.h"
24 #include "rlim_names.h"
37 rlim_names[sa->aad->rlim.rlim], sa->aad->rlim.max);
99 if ((task !=
current->group_leader) ||
100 (profile->
rlimits.mask & (1 << resource) &&
104 return audit_resource(profile, resource, new_rlim->
rlim_max, error);
114 unsigned int mask = 0;
115 struct rlimit *rlim, *initrlim;
122 for (i = 0, mask = 1; i <
RLIM_NLIMITS; i++, mask <<= 1) {
123 if (old->
rlimits.mask & mask) {
133 if (!new->rlimits.mask)
135 for (i = 0, mask = 1; i <
RLIM_NLIMITS; i++, mask <<= 1) {
136 if (!(new->rlimits.mask & mask))
141 new->rlimits.limits[i].rlim_max);