aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/cred.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/cred.c')
-rw-r--r--kernel/cred.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/cred.c b/kernel/cred.c
index 62af1816c235..2c24870c55d1 100644
--- a/kernel/cred.c
+++ b/kernel/cred.c
@@ -17,7 +17,6 @@
17#include <linux/init_task.h> 17#include <linux/init_task.h>
18#include <linux/security.h> 18#include <linux/security.h>
19#include <linux/cn_proc.h> 19#include <linux/cn_proc.h>
20#include "cred-internals.h"
21 20
22#if 0 21#if 0
23#define kdebug(FMT, ...) \ 22#define kdebug(FMT, ...) \
@@ -523,8 +522,6 @@ int commit_creds(struct cred *new)
523#endif 522#endif
524 BUG_ON(atomic_read(&new->usage) < 1); 523 BUG_ON(atomic_read(&new->usage) < 1);
525 524
526 security_commit_creds(new, old);
527
528 get_cred(new); /* we will require a ref for the subj creds too */ 525 get_cred(new); /* we will require a ref for the subj creds too */
529 526
530 /* dumpability changes */ 527 /* dumpability changes */
@@ -560,8 +557,6 @@ int commit_creds(struct cred *new)
560 atomic_dec(&old->user->processes); 557 atomic_dec(&old->user->processes);
561 alter_cred_subscribers(old, -2); 558 alter_cred_subscribers(old, -2);
562 559
563 sched_switch_user(task);
564
565 /* send notifications */ 560 /* send notifications */
566 if (new->uid != old->uid || 561 if (new->uid != old->uid ||
567 new->euid != old->euid || 562 new->euid != old->euid ||