projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
prctl: use CAP_SYS_RESOURCE for PR_SET_MM option
[cascardo/linux.git]
/
kernel
/
sys.c
diff --git
a/kernel/sys.c
b/kernel/sys.c
index
4070153
..
888d227
100644
(file)
--- a/
kernel/sys.c
+++ b/
kernel/sys.c
@@
-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)