calipso: Set the calipso socket label to match the secattr.
[deliverable/linux.git] / security / selinux / netlabel.c
index 1f989a539fd4abe08e3797b5d49f7b26ded4fe41..5470f32eca545c2883a000bc3ad1f617d793472a 100644 (file)
@@ -333,7 +333,7 @@ int selinux_netlbl_socket_post_create(struct sock *sk, u16 family)
        struct sk_security_struct *sksec = sk->sk_security;
        struct netlbl_lsm_secattr *secattr;
 
-       if (family != PF_INET)
+       if (family != PF_INET && family != PF_INET6)
                return 0;
 
        secattr = selinux_netlbl_sock_genattr(sk);
This page took 0.032038 seconds and 5 git commands to generate.