]> git.baikalelectronics.ru Git - kernel.git/commit
selinux: Fix send_sigiotask hook
authorStephen Smalley <sds@tycho.nsa.gov>
Mon, 4 May 2009 19:43:18 +0000 (15:43 -0400)
committerJames Morris <jmorris@namei.org>
Mon, 4 May 2009 22:31:03 +0000 (08:31 +1000)
commit66403717466025c32a425436e27154db0fcd2c56
treefd8f5e6338f04ba47fe91de1303b92a22da78daf
parent1a1265eecfaf92593506edad6a71f2e069a7da76
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