aboutsummaryrefslogtreecommitdiffstats
path: root/fs/proc
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-10-04 20:15:27 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2012-10-05 14:05:16 -0400
commit0f4cfb2e4e7a7e4e97a3e90e2ba1062f07fb2cb1 (patch)
tree25fa36bc342f624c46b39fa41bb4815397413338 /fs/proc
parent12a2b4b2241e318b4f6df31228e4272d2c2968a1 (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/proc')
-rw-r--r--fs/proc/internal.h2
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)
103 if (mm) 103 if (mm)
104 dumpable = get_dumpable(mm); 104 dumpable = get_dumpable(mm);
105 task_unlock(task); 105 task_unlock(task);
106 if(dumpable == 1) 106 if (dumpable == SUID_DUMPABLE_ENABLED)
107 return 1; 107 return 1;
108 return 0; 108 return 0;
109} 109}