git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] Fix prctl privilege escalation and suid_dumpable (CVE-2006-2451)
[safe/jmp/linux-2.6]
/
kernel
/
sys.c
diff --git
a/kernel/sys.c
b/kernel/sys.c
index
dbb3b9c
..
e236f98
100644
(file)
--- a/
kernel/sys.c
+++ b/
kernel/sys.c
@@
-1983,7
+1983,7
@@
asmlinkage long sys_prctl(int option, unsigned long arg2, unsigned long arg3,
error = current->mm->dumpable;
break;
case PR_SET_DUMPABLE:
- if (arg2 < 0 || arg2 >
2
) {
+ if (arg2 < 0 || arg2 >
1
) {
error = -EINVAL;
break;
}