diff options
Diffstat (limited to 'security/selinux/selinuxfs.c')
-rw-r--r-- | security/selinux/selinuxfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/selinuxfs.c b/security/selinux/selinuxfs.c index 69c9dccc8cf0..10715d1330b9 100644 --- a/security/selinux/selinuxfs.c +++ b/security/selinux/selinuxfs.c | |||
@@ -97,7 +97,7 @@ static int task_has_security(struct task_struct *tsk, | |||
97 | { | 97 | { |
98 | struct task_security_struct *tsec; | 98 | struct task_security_struct *tsec; |
99 | 99 | ||
100 | tsec = tsk->security; | 100 | tsec = tsk->cred->security; |
101 | if (!tsec) | 101 | if (!tsec) |
102 | return -EACCES; | 102 | return -EACCES; |
103 | 103 | ||