Merge remote-tracking branch 'asoc/fix/si476x' into asoc-next
[firefly-linux-kernel-4.4.55.git] / fs / coredump.c
index 69baf903d3bdba2a5845d5d2912cb2a5b42f10e8..c6479658d4875c0eac32db5c262f515468d3ec76 100644 (file)
@@ -501,7 +501,7 @@ void do_coredump(siginfo_t *siginfo)
         * so we dump it as root in mode 2, and only into a controlled
         * environment (pipe handler or fully qualified path).
         */
-       if (__get_dumpable(cprm.mm_flags) == SUID_DUMPABLE_SAFE) {
+       if (__get_dumpable(cprm.mm_flags) == SUID_DUMP_ROOT) {
                /* Setuid core dump mode */
                flag = O_EXCL;          /* Stop rewrite attacks */
                cred->fsuid = GLOBAL_ROOT_UID;  /* Dump root private */