提交 f6fdd7d9 编写于 作者: L Linus Torvalds

Don't allow normal users to set idle IO priority

It has all the normal priority inversion problems.
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册