projects/linux·commit a31ea2f5

Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6

a31ea2f5 · Linus Torvalds <[email protected]> · 2009-05-05 08:24:41 -07:00

* 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/security-testing-2.6:
  selinux: Fix send_sigiotask hook
Commit
a31ea2f568d0ad4bb11e2fe8a94b95de0cb5fa69
Parents
0488713c · 65c90bca

Merge commit. Changes below are compared with the first parent: 0488713c.

Changes

1 files changed · +1 −1

FileStatusAddDelContent
security/selinux/hooks.cmodified+1−1View file

security/selinux/hooks.c

View file
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c
index ba808ef..2fcad7c 100644
--- a/security/selinux/hooks.c
+++ b/security/selinux/hooks.c
@@ -3153,7 +3153,7 @@ static int selinux_file_send_sigiotask(struct task_struct *tsk,
struct fown_struct *fown, int signum)
{
struct file *file;
- u32 sid = current_sid();
+ u32 sid = task_sid(tsk);
u32 perm;
struct file_security_struct *fsec;