From: Linus Torvalds Date: Sun, 21 Aug 2005 01:51:29 +0000 (-0700) Subject: Don't allow normal users to set idle IO priority X-Git-Tag: v2.6.13-rc7~59^2 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=f6fdd7d9c273bb2a20ab467cb57067494f932fa3;p=linux-2.6-omap-h63xx.git Don't allow normal users to set idle IO priority It has all the normal priority inversion problems. Signed-off-by: Linus Torvalds --- diff --git a/fs/ioprio.c b/fs/ioprio.c index 97e1f088ba0..d1c1f2b2c9d 100644 --- a/fs/ioprio.c +++ b/fs/ioprio.c @@ -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;