diff options
Diffstat (limited to 'security/selinux/hooks.c')
-rw-r--r-- | security/selinux/hooks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/hooks.c b/security/selinux/hooks.c index be544332214c..1a1fa3f20ef0 100644 --- a/security/selinux/hooks.c +++ b/security/selinux/hooks.c | |||
@@ -3928,7 +3928,7 @@ static int selinux_socket_sock_rcv_skb(struct sock *sk, struct sk_buff *skb) | |||
3928 | family = PF_INET; | 3928 | family = PF_INET; |
3929 | 3929 | ||
3930 | AVC_AUDIT_DATA_INIT(&ad, NET); | 3930 | AVC_AUDIT_DATA_INIT(&ad, NET); |
3931 | ad.u.net.netif = skb->dev ? skb->dev->name : "[unknown]"; | 3931 | ad.u.net.netif = skb->iif; |
3932 | ad.u.net.family = family; | 3932 | ad.u.net.family = family; |
3933 | 3933 | ||
3934 | err = selinux_parse_skb(skb, &ad, &addrp, &len, 1, NULL); | 3934 | err = selinux_parse_skb(skb, &ad, &addrp, &len, 1, NULL); |
@@ -4259,7 +4259,7 @@ static unsigned int selinux_ip_postroute_last(unsigned int hooknum, | |||
4259 | sksec = sk->sk_security; | 4259 | sksec = sk->sk_security; |
4260 | 4260 | ||
4261 | AVC_AUDIT_DATA_INIT(&ad, NET); | 4261 | AVC_AUDIT_DATA_INIT(&ad, NET); |
4262 | ad.u.net.netif = dev->name; | 4262 | ad.u.net.netif = dev->ifindex; |
4263 | ad.u.net.family = family; | 4263 | ad.u.net.family = family; |
4264 | 4264 | ||
4265 | err = selinux_parse_skb(skb, &ad, &addrp, &len, 0, &proto); | 4265 | err = selinux_parse_skb(skb, &ad, &addrp, &len, 0, &proto); |