]> err.no Git - linux-2.6/commit
__sched_setscheduler: don't do any policy checks when not "user"
authorJeremy Fitzhardinge <jeremy@goop.org>
Sun, 3 Aug 2008 16:33:03 +0000 (09:33 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 5 Aug 2008 00:16:20 +0000 (17:16 -0700)
commit725aad24c3ba96a7c06448c14c265a466cdbd663
treebbe0eae923736950030751651f70f3ace4cc7693
parent5941de8eadc287f3f47b87ce9888734ee07d210b
__sched_setscheduler: don't do any policy checks when not "user"

The "user" parameter to __sched_setscheduler indicates whether the
change is being done on behalf of a user process or not.  If not, we
shouldn't apply any permissions checks, so don't call
security_task_setscheduler().

Signed-off-by: Jeremy Fitzhardinge <jeremy@goop.org>
Tested-by: Steve Wise <swise@opengridcomputing.com>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: "Rafael J. Wysocki" <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sched.c