projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
block: grant IOPRIO_CLASS_RT to CAP_SYS_NICE
[linux-2.6-block.git]
/
block
/
ioprio.c
diff --git
a/block/ioprio.c
b/block/ioprio.c
index 04ebd37966f181eee55282e67bc96c696de2fdc2..364d2294ba90415f896dd62ad3f049f78d7fb84b 100644
(file)
--- a/
block/ioprio.c
+++ b/
block/ioprio.c
@@
-69,7
+69,7
@@
int ioprio_check_cap(int ioprio)
switch (class) {
case IOPRIO_CLASS_RT:
- if (!capable(CAP_SYS_ADMIN))
+ if (!capable(CAP_SYS_
NICE) && !capable(CAP_SYS_
ADMIN))
return -EPERM;
fallthrough;
/* rt has prio field too */