diff options
Diffstat (limited to 'security/selinux/exports.c')
-rw-r--r-- | security/selinux/exports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/security/selinux/exports.c b/security/selinux/exports.c index 64af2d3409ef..cf02490cd1eb 100644 --- a/security/selinux/exports.c +++ b/security/selinux/exports.c | |||
@@ -39,7 +39,7 @@ EXPORT_SYMBOL_GPL(selinux_string_to_sid); | |||
39 | int selinux_secmark_relabel_packet_permission(u32 sid) | 39 | int selinux_secmark_relabel_packet_permission(u32 sid) |
40 | { | 40 | { |
41 | if (selinux_enabled) { | 41 | if (selinux_enabled) { |
42 | struct task_security_struct *tsec = current->security; | 42 | struct task_security_struct *tsec = current->cred->security; |
43 | 43 | ||
44 | return avc_has_perm(tsec->sid, sid, SECCLASS_PACKET, | 44 | return avc_has_perm(tsec->sid, sid, SECCLASS_PACKET, |
45 | PACKET__RELABELTO, NULL); | 45 | PACKET__RELABELTO, NULL); |