prctl: make PR_SET_TIMERSLACK_PID pid namespace aware
authorMicha Kalfon <micha@cellrox.com>
Tue, 13 Jan 2015 10:12:57 +0000 (12:12 +0200)
committerJohn Stultz <john.stultz@linaro.org>
Tue, 16 Feb 2016 21:53:49 +0000 (13:53 -0800)
commitd4d049c55d0f0fa7fb5521a83c7e0c029c80e7c0
treeaf0ea648d6aaab5fc098120fc1f94eaa2318a682
parent18f42f60bedb93c9e90641bf9a551f9c0caf0a40
prctl: make PR_SET_TIMERSLACK_PID pid namespace aware

Make PR_SET_TIMERSLACK_PID consider pid namespace and resolve the
target pid in the caller's namespace. Otherwise, calls from pid
namespace other than init would fail or affect the wrong task.

Change-Id: I1da15196abc4096536713ce03714e99d2e63820a
Signed-off-by: Micha Kalfon <micha@cellrox.com>
Acked-by: Oren Laadan <orenl@cellrox.com>
kernel/sys.c