diff options
Diffstat (limited to 'kernel/sys.c')
-rw-r--r-- | kernel/sys.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sys.c b/kernel/sys.c index df2ddcc6863b..7f43d6e62c7a 100644 --- a/kernel/sys.c +++ b/kernel/sys.c | |||
@@ -227,7 +227,7 @@ static int set_one_prio(struct task_struct *p, int niceval, int error) | |||
227 | error = -EPERM; | 227 | error = -EPERM; |
228 | goto out; | 228 | goto out; |
229 | } | 229 | } |
230 | if (niceval < task_nice(p) && !capable(CAP_SYS_NICE)) { | 230 | if (niceval < task_nice(p) && !can_nice(p, niceval)) { |
231 | error = -EACCES; | 231 | error = -EACCES; |
232 | goto out; | 232 | goto out; |
233 | } | 233 | } |