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)
committerRuchi Kandoi <kandoiruchi@google.com>
Tue, 13 Jan 2015 23:35:55 +0000 (23:35 +0000)
commit2e09fe094acd1fb26b9ce242df045ceef042a2a0
treec2d89407403816d45205cc35535c19d8f6f702a4
parente1a60cbe0312adbf471ee057c5d7b917ae5e80c5
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