/* Do not audit the selinux permission check, as this is applied to all processes that allocate mappings.  */
static int selinux_vm_enough_memory(struct mm_struct *mm, long pages)
/* Do not audit the selinux permission check, as this is applied to all processes that allocate mappings.  */
static int selinux_vm_enough_memory(struct mm_struct *mm, long pages)
{
	int rc, cap_sys_admin = 0;
	rc = selinux_capable(current, current_cred(), CAP_SYS_ADMIN,
			     SECURITY_CAP_NOAUDIT);
	if (rc == 0)
		cap_sys_admin = 1;
	return __vm_enough_memory(mm, pages, cap_sys_admin);
}