Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 330153
b: refs/heads/master
c: 0f4cfb2
h: refs/heads/master
i:
  330151: a0daa89
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Oct 5, 2012
1 parent 7782f62 commit 2bca3ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 12a2b4b2241e318b4f6df31228e4272d2c2968a1
refs/heads/master: 0f4cfb2e4e7a7e4e97a3e90e2ba1062f07fb2cb1
2 changes: 1 addition & 1 deletion trunk/fs/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ void setup_new_exec(struct linux_binprm * bprm)
current->sas_ss_sp = current->sas_ss_size = 0;

if (uid_eq(current_euid(), current_uid()) && gid_eq(current_egid(), current_gid()))
set_dumpable(current->mm, 1);
set_dumpable(current->mm, SUID_DUMPABLE_ENABLED);
else
set_dumpable(current->mm, suid_dumpable);

Expand Down
2 changes: 1 addition & 1 deletion trunk/fs/proc/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 2bca3ce

Please sign in to comment.