Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 42940
b: refs/heads/master
c: a09c17a
h: refs/heads/master
v: v3
  • Loading branch information
David Rientjes authored and Linus Torvalds committed Dec 7, 2006
1 parent 7efd69c commit 6d9dd96
Show file tree
Hide file tree
Showing 2 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: 8de61e69c2feb10e5391cca67a3faf1d2bf77ce0
refs/heads/master: a09c17a6fdad9ae5b5ea1c3383080f84ec76ab20
4 changes: 2 additions & 2 deletions trunk/kernel/sys.c
Original file line number Diff line number Diff line change
Expand Up @@ -1102,14 +1102,14 @@ asmlinkage long sys_setreuid(uid_t ruid, uid_t euid)
asmlinkage long sys_setuid(uid_t uid)
{
int old_euid = current->euid;
int old_ruid, old_suid, new_ruid, new_suid;
int old_ruid, old_suid, new_suid;
int retval;

retval = security_task_setuid(uid, (uid_t)-1, (uid_t)-1, LSM_SETID_ID);
if (retval)
return retval;

old_ruid = new_ruid = current->uid;
old_ruid = current->uid;
old_suid = current->suid;
new_suid = old_suid;

Expand Down

0 comments on commit 6d9dd96

Please sign in to comment.