mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 14:11:52 +00:00
Don't allow normal users to set idle IO priority
It has all the normal priority inversion problems. Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
7e71af49d4
commit
f6fdd7d9c2
@ -62,6 +62,8 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio)
|
||||
|
||||
break;
|
||||
case IOPRIO_CLASS_IDLE:
|
||||
if (!capable(CAP_SYS_ADMIN))
|
||||
return -EPERM;
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user