|
@@ -47,6 +47,7 @@
|
|
|
#include <linux/syscalls.h>
|
|
#include <linux/syscalls.h>
|
|
|
#include <linux/kprobes.h>
|
|
#include <linux/kprobes.h>
|
|
|
#include <linux/user_namespace.h>
|
|
#include <linux/user_namespace.h>
|
|
|
|
|
+#include <linux/binfmts.h>
|
|
|
|
|
|
|
|
#include <linux/kmsg_dump.h>
|
|
#include <linux/kmsg_dump.h>
|
|
|
/* Move somewhere else to avoid recompiling? */
|
|
/* Move somewhere else to avoid recompiling? */
|
|
@@ -2026,7 +2027,8 @@ SYSCALL_DEFINE5(prctl, int, option, unsigned long, arg2, unsigned long, arg3,
|
|
|
error = get_dumpable(me->mm);
|
|
error = get_dumpable(me->mm);
|
|
|
break;
|
|
break;
|
|
|
case PR_SET_DUMPABLE:
|
|
case PR_SET_DUMPABLE:
|
|
|
- if (arg2 < 0 || arg2 > 1) {
|
|
|
|
|
|
|
+ if (arg2 != SUID_DUMP_DISABLE &&
|
|
|
|
|
+ arg2 != SUID_DUMP_USER) {
|
|
|
error = -EINVAL;
|
|
error = -EINVAL;
|
|
|
break;
|
|
break;
|
|
|
}
|
|
}
|