prctl: use CAP_SYS_RESOURCE for PR_SET_MM option
[cascardo/linux.git] / kernel / sys.c
index 4070153..888d227 100644 (file)
@@ -1706,7 +1706,7 @@ static int prctl_set_mm(int opt, unsigned long addr,
        if (arg4 | arg5)
                return -EINVAL;
 
-       if (!capable(CAP_SYS_ADMIN))
+       if (!capable(CAP_SYS_RESOURCE))
                return -EPERM;
 
        if (addr >= TASK_SIZE)