sched/deadline: Deny unprivileged users to set/change SCHED_DEADLINE policy
authorJuri Lelli <juri.lelli@gmail.com>
Mon, 3 Mar 2014 11:09:21 +0000 (12:09 +0100)
committerIngo Molnar <mingo@kernel.org>
Tue, 11 Mar 2014 10:33:46 +0000 (11:33 +0100)
commitd44753b843e093f9e1f2f14806fbe106fff74898
tree0d5899268a6831cfcaad636ff85f0fd9e8759881
parent8712a00514e50aafa7c9bf5cd3955fa60758e53b
sched/deadline: Deny unprivileged users to set/change SCHED_DEADLINE policy

Deny the use of SCHED_DEADLINE policy to unprivileged users.
Even if root users can set the policy for normal users, we
don't want the latter to be able to change their parameters
(safest behavior).

Signed-off-by: Juri Lelli <juri.lelli@gmail.com>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1393844961-18097-1-git-send-email-juri.lelli@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/core.c