projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e71af4
)
Don't allow normal users to set idle IO priority
author
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 21 Aug 2005 01:51:29 +0000
(18:51 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Sun, 21 Aug 2005 01:51:29 +0000
(18:51 -0700)
It has all the normal priority inversion problems.
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
fs/ioprio.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/ioprio.c
b/fs/ioprio.c
index 97e1f088ba00b3b63f7f9ea594b756781fcf6596..d1c1f2b2c9da9796affc6be18b8793489b9f2873 100644
(file)
--- 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;