tree 4835ce2c366c8a5102d35592ddfdf9f22dd245c6
parent 7e71af49d46e4c25f17a2c8f53d62ffd14f01007
author Linus Torvalds <[EMAIL PROTECTED]> Sun, 21 Aug 2005 08:51:29 -0700
committer Linus Torvalds <[EMAIL PROTECTED]> Sun, 21 Aug 2005 08:51:29 -0700

Don't allow normal users to set idle IO priority

It has all the normal priority inversion problems.

Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>

 fs/ioprio.c |    2 ++
 1 files changed, 2 insertions(+)

diff --git a/fs/ioprio.c b/fs/ioprio.c
--- a/fs/ioprio.c
+++ b/fs/ioprio.c
@@ -62,6 +62,8 @@ asmlinkage long sys_ioprio_set(int which
 
                        break;
                case IOPRIO_CLASS_IDLE:
+                       if (!capable(CAP_SYS_ADMIN))
+                               return -EPERM;
                        break;
                default:
                        return -EINVAL;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to