]> git.karo-electronics.de Git - karo-tx-linux.git/commit
coredump: kill MMF_DUMPABLE and MMF_DUMP_SECURELY
authorOleg Nesterov <oleg@redhat.com>
Fri, 3 Jan 2014 03:10:28 +0000 (14:10 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 3 Jan 2014 03:10:28 +0000 (14:10 +1100)
commitb347f2a421c81b8852a3df32215729126e50ab24
treeec823cef665f973dc5f7698d0f17f1837da7ef4a
parentca97d4cfffa9223d8bcde54f40eb908897ce07ff
coredump: kill MMF_DUMPABLE and MMF_DUMP_SECURELY

Nobody actually needs MMF_DUMPABLE/MMF_DUMP_SECURELY, they are only used
to enforce the encoding of SUID_DUMP_* enum in mm->flags &
MMF_DUMPABLE_MASK.

Now that set_dumpable() updates both bits atomically we can kill them and
simply store the value "as is" in 2 lower bits.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Acked-by: Kees Cook <keescook@chromium.org>
Cc: Alex Kelly <alex.page.kelly@gmail.com>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Josh Triplett <josh@joshtriplett.org>
Cc: Petr Matousek <pmatouse@redhat.com>
Cc: Vasily Kulikov <segoon@openwall.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/exec.c
include/linux/sched.h