]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - security/selinux/exports.c
CRED: Separate task security context from task_struct
[net-next-2.6.git] / security / selinux / exports.c
index 64af2d3409ef5e24945ac65032eac831d05eae25..cf02490cd1ebff3b59dd4aec63f7042ced8804f4 100644 (file)
@@ -39,7 +39,7 @@ EXPORT_SYMBOL_GPL(selinux_string_to_sid);
 int selinux_secmark_relabel_packet_permission(u32 sid)
 {
        if (selinux_enabled) {
-               struct task_security_struct *tsec = current->security;
+               struct task_security_struct *tsec = current->cred->security;
 
                return avc_has_perm(tsec->sid, sid, SECCLASS_PACKET,
                                    PACKET__RELABELTO, NULL);