commit | f6fdd7d9c273bb2a20ab467cb57067494f932fa3 | [log] [tgz] |
---|---|---|
author | Linus Torvalds <torvalds@g5.osdl.org> | Sat Aug 20 18:51:29 2005 -0700 |
committer | Linus Torvalds <torvalds@g5.osdl.org> | Sat Aug 20 18:51:29 2005 -0700 |
tree | 4835ce2c366c8a5102d35592ddfdf9f22dd245c6 | |
parent | 7e71af49d46e4c25f17a2c8f53d62ffd14f01007 [diff] [blame] |
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>
diff --git a/fs/ioprio.c b/fs/ioprio.c index 97e1f08..d1c1f2b 100644 --- a/fs/ioprio.c +++ b/fs/ioprio.c
@@ -62,6 +62,8 @@ break; case IOPRIO_CLASS_IDLE: + if (!capable(CAP_SYS_ADMIN)) + return -EPERM; break; default: return -EINVAL;