prctl: adds the capable(CAP_SYS_NICE) check to PR_SET_TIMERSLACK_PID.
authorRuchi Kandoi <kandoiruchi@google.com>
Sat, 14 Jun 2014 00:03:01 +0000 (17:03 -0700)
committerRuchi Kandoi <kandoiruchi@google.com>
Mon, 16 Jun 2014 17:49:10 +0000 (17:49 +0000)
commit8ae872f1d59990a1f33a7e5aae6b5bcbedc5806f
treee29a0f147e5b7ef6895013f7add8354e52100c2f
parent40cf2f818f45784bab7f81406291b5c28469f8f0
prctl: adds the capable(CAP_SYS_NICE) check to PR_SET_TIMERSLACK_PID.

Adds a capable() check to make sure that arbitary apps do not change the
timer slack for other apps.

Bug: 15000427
Change-Id: I558a2551a0e3579c7f7e7aae54b28aa9d982b209
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
kernel/sys.c