summaryrefslogtreecommitdiff
path: root/kernel/sys.c
diff options
context:
space:
mode:
authorDhaval Giani <dhaval.giani@gmail.com>2010-01-20 15:26:18 +0300
committerIngo Molnar <mingo@elte.hu>2010-01-21 15:40:18 +0300
commit7c9414385ebfdd87cc542d4e7e3bb0dbb2d3ce25 (patch)
treebeb51d7d0d543d72e2754cff807df5c399f2d376 /kernel/sys.c
parent871e35bc9733f273eaf5ceb69bbd0423b58e5285 (diff)
downloadlinux-7c9414385ebfdd87cc542d4e7e3bb0dbb2d3ce25.tar.xz
sched: Remove USER_SCHED
Remove the USER_SCHED feature. It has been scheduled to be removed in 2.6.34 as per http://marc.info/?l=linux-kernel&m=125728479022976&w=2 Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1263990378.24844.3.camel@localhost> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sys.c')
-rw-r--r--kernel/sys.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/kernel/sys.c b/kernel/sys.c
index 26a6b73a6b85..f75bf0936f47 100644
--- a/kernel/sys.c
+++ b/kernel/sys.c
@@ -569,11 +569,6 @@ static int set_user(struct cred *new)
if (!new_user)
return -EAGAIN;
- if (!task_can_switch_user(new_user, current)) {
- free_uid(new_user);
- return -EINVAL;
- }
-
if (atomic_read(&new_user->processes) >=
current->signal->rlim[RLIMIT_NPROC].rlim_cur &&
new_user != INIT_USER) {