Commit f6fdd7d9 authored by Linus Torvalds's avatar Linus Torvalds
Browse files

Don't allow normal users to set idle IO priority



It has all the normal priority inversion problems.

Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 7e71af49
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -62,6 +62,8 @@ asmlinkage long sys_ioprio_set(int which, int who, int ioprio)


			break;
			break;
		case IOPRIO_CLASS_IDLE:
		case IOPRIO_CLASS_IDLE:
			if (!capable(CAP_SYS_ADMIN))
				return -EPERM;
			break;
			break;
		default:
		default:
			return -EINVAL;
			return -EINVAL;