Commit f6fdd7d9 authored by Linus Torvalds's avatar Linus Torvalds

Don't allow normal users to set idle IO priority

It has all the normal priority inversion problems.
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7e71af49
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment