selinux: Fix send_sigiotask hook
commit65c90bca0dba56f60dc4ce2a529140c3cc440f22
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 4 May 2009 19:43:18 +0000 (4 15:43 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 4 May 2009 22:31:03 +0000 (5 08:31 +1000)
treefd8f5e6338f04ba47fe91de1303b92a22da78daf
parent091438dd5668396328a3419abcbc6591159eb8d1
selinux: Fix send_sigiotask hook

The CRED patch incorrectly converted the SELinux send_sigiotask hook to
use the current task SID rather than the target task SID in its
permission check, yielding the wrong permission check.  This fixes the
hook function.  Detected by the ltp selinux testsuite and confirmed to
correct the test failure.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: James Morris <jmorris@namei.org>
security/selinux/hooks.c