]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - fs/ioprio.c
[PATCH] md: ignore auto-readonly flag for arrays where it isn't meaningful
[karo-tx-linux.git] / fs / ioprio.c
index 97e1f088ba00b3b63f7f9ea594b756781fcf6596..d1c1f2b2c9da9796affc6be18b8793489b9f2873 100644 (file)
@@ -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;