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>

authored by Stephen Smalley and committed by James Morris 65c90bca 091438dd

+1 -1
+1 -1
security/selinux/hooks.c
··· 3153 3153 struct fown_struct *fown, int signum) 3154 3154 { 3155 3155 struct file *file; 3156 - u32 sid = current_sid(); 3156 + u32 sid = task_sid(tsk); 3157 3157 u32 perm; 3158 3158 struct file_security_struct *fsec; 3159 3159