aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/exec.c2
-rw-r--r--fs/proc/internal.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/exec.c b/fs/exec.c
index bd941a1cdbfc..9824473a7ec1 100644
--- a/fs/exec.c
+++ b/fs/exec.c
@@ -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
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}