diff options
author | Oleg Nesterov <oleg@redhat.com> | 2012-10-04 20:15:27 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2012-10-05 14:05:16 -0400 |
commit | 0f4cfb2e4e7a7e4e97a3e90e2ba1062f07fb2cb1 (patch) | |
tree | 25fa36bc342f624c46b39fa41bb4815397413338 /fs/exec.c | |
parent | 12a2b4b2241e318b4f6df31228e4272d2c2968a1 (diff) |
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 'fs/exec.c')
-rw-r--r-- | fs/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1097,7 +1097,7 @@ void setup_new_exec(struct linux_binprm * bprm) | |||
1097 | current->sas_ss_sp = current->sas_ss_size = 0; | 1097 | current->sas_ss_sp = current->sas_ss_size = 0; |
1098 | 1098 | ||
1099 | if (uid_eq(current_euid(), current_uid()) && gid_eq(current_egid(), current_gid())) | 1099 | if (uid_eq(current_euid(), current_uid()) && gid_eq(current_egid(), current_gid())) |
1100 | set_dumpable(current->mm, 1); | 1100 | set_dumpable(current->mm, SUID_DUMPABLE_ENABLED); |
1101 | else | 1101 | else |
1102 | set_dumpable(current->mm, suid_dumpable); | 1102 | set_dumpable(current->mm, suid_dumpable); |
1103 | 1103 | ||