]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - security/selinux/netlabel.c
net: add skb_to_full_sk() helper and use it in selinux_netlbl_skbuff_setsid()
[karo-tx-linux.git] / security / selinux / netlabel.c
index 0364120d1ec8705da7e8c1636f645d0885731509..1f989a539fd4abe08e3797b5d49f7b26ded4fe41 100644 (file)
@@ -245,7 +245,7 @@ int selinux_netlbl_skbuff_setsid(struct sk_buff *skb,
 
        /* if this is a locally generated packet check to see if it is already
         * being labeled by it's parent socket, if it is just exit */
-       sk = skb->sk;
+       sk = skb_to_full_sk(skb);
        if (sk != NULL) {
                struct sk_security_struct *sksec = sk->sk_security;
                if (sksec->nlbl_state != NLBL_REQSKB)