Searched refs:resource (Results 1 – 6 of 6) sorted by relevance
/security/apparmor/ |
D | resource.c | 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() [all …]
|
D | Makefile | 8 resource.o secid.o file.o policy_ns.o label.o mount.o net.o 99 $(obj)/resource.o : $(obj)/rlim_names.h 103 $(obj)/rlim_names.h : $(srctree)/include/uapi/asm-generic/resource.h \
|
D | lsm.c | 717 unsigned int resource, struct rlimit *new_rlim) in apparmor_task_setrlimit() argument 723 error = aa_task_setrlimit(label, task, resource, new_rlim); in apparmor_task_setrlimit()
|
/security/apparmor/include/ |
D | resource.h | 35 int aa_map_resource(int resource); 37 unsigned int resource, struct rlimit *new_rlim);
|
/security/ |
D | security.c | 1681 int security_task_setrlimit(struct task_struct *p, unsigned int resource, in security_task_setrlimit() argument 1684 return call_int_hook(task_setrlimit, 0, p, resource, new_rlim); in security_task_setrlimit()
|
/security/selinux/ |
D | hooks.c | 4097 static int selinux_task_setrlimit(struct task_struct *p, unsigned int resource, in selinux_task_setrlimit() argument 4100 struct rlimit *old_rlim = p->signal->rlim + resource; in selinux_task_setrlimit()
|