Searched refs:cap_sys_admin (Results 1 – 7 of 7) sorted by relevance
1410 int cap_sys_admin = 0; in cap_vm_enough_memory() local1414 cap_sys_admin = 1; in cap_vm_enough_memory()1416 return cap_sys_admin; in cap_vm_enough_memory()
835 int cap_sys_admin = 1; in security_vm_enough_memory_mm() local848 cap_sys_admin = 0; in security_vm_enough_memory_mm()852 return __vm_enough_memory(mm, pages, cap_sys_admin); in security_vm_enough_memory_mm()
990 int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin) in __vm_enough_memory() argument1012 if (!cap_sys_admin) in __vm_enough_memory()
1083 int cap_sys_admin = capable(CAP_SYS_ADMIN); in process_init_limits() local1095 if (!cap_sys_admin && fc->max_background > max_user_bgreq) in process_init_limits()1101 if (!cap_sys_admin && in process_init_limits()
2199 int rc, cap_sys_admin = 0; in selinux_vm_enough_memory() local2204 cap_sys_admin = 1; in selinux_vm_enough_memory()2206 return cap_sys_admin; in selinux_vm_enough_memory()
2677 extern int __vm_enough_memory(struct mm_struct *mm, long pages, int cap_sys_admin);
84 with the capability cap_sys_admin.