Commit f6fdd7d9c273bb2a20ab467cb57067494f932fa3

Authored by Linus Torvalds
1 parent 7e71af49d4

Don't allow normal users to set idle IO priority

It has all the normal priority inversion problems.

Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 1 changed file with 2 additions and 0 deletions Side-by-side Diff

... ... @@ -62,6 +62,8 @@
62 62  
63 63 break;
64 64 case IOPRIO_CLASS_IDLE:
  65 + if (!capable(CAP_SYS_ADMIN))
  66 + return -EPERM;
65 67 break;
66 68 default:
67 69 return -EINVAL;