diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-10-05 02:15:27 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 20:05:16 +0200 |
commit | 0f4cfb2e4e7a7e4e97a3e90e2ba1062f07fb2cb1 (patch) | |
tree | 25fa36bc342f624c46b39fa41bb4815397413338 /fs/proc | |
parent | coredump: add support for %d=__get_dumpable() in core name (diff) | |
download | linux-0f4cfb2e4e7a7e4e97a3e90e2ba1062f07fb2cb1.tar.xz linux-0f4cfb2e4e7a7e4e97a3e90e2ba1062f07fb2cb1.zip |
coredump: use SUID_DUMPABLE_ENABLED rather than hardcoded 1
Cosmetic. Change setup_new_exec() and task_dumpable() to use
SUID_DUMPABLE_ENABLED for /bin/grep.
[akpm@linux-foundation.org: checkpatch fixes]
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
-rw-r--r-- | fs/proc/internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/internal.h b/fs/proc/internal.h index 67925a7bd8cb..cceaab07ad54 100644 --- a/fs/proc/internal.h +++ b/fs/proc/internal.h @@ -103,7 +103,7 @@ static inline int task_dumpable(struct task_struct *task) if (mm) dumpable = get_dumpable(mm); task_unlock(task); - if(dumpable == 1) + if (dumpable == SUID_DUMPABLE_ENABLED) return 1; return 0; } |