Skip to content

Commit

Permalink
Don't allow normal users to set idle IO priority
Browse files Browse the repository at this point in the history
It has all the normal priority inversion problems.

Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Linus Torvalds committed Aug 21, 2005
1 parent 7e71af4 commit f6fdd7d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions fs/ioprio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f6fdd7d

Please sign in to comment.