Re: [PATCH] netlabel: If PF_INET6, check sk_buff ip header version

2018-02-14 Thread Paul Moore
On Mon, Nov 13, 2017 at 5:13 PM, Paul Moore wrote: > On Mon, Nov 13, 2017 at 3:54 PM, Richard Haines > wrote: >> When resolving a fallback label, check the sk_buff version as it >> is possible (e.g. SCTP) to have family = PF_INET6 while >> receiving ip_hdr(skb)->version = 4. >> >> Signed-off-by:

Re: [PATCH] netlabel: If PF_INET6, check sk_buff ip header version

2017-11-13 Thread Paul Moore
On Mon, Nov 13, 2017 at 3:54 PM, Richard Haines wrote: > When resolving a fallback label, check the sk_buff version as it > is possible (e.g. SCTP) to have family = PF_INET6 while > receiving ip_hdr(skb)->version = 4. > > Signed-off-by: Richard Haines > --- > net/netlabel/netlabel_unlabeled.c |

[PATCH] netlabel: If PF_INET6, check sk_buff ip header version

2017-11-13 Thread Richard Haines
When resolving a fallback label, check the sk_buff version as it is possible (e.g. SCTP) to have family = PF_INET6 while receiving ip_hdr(skb)->version = 4. Signed-off-by: Richard Haines --- net/netlabel/netlabel_unlabeled.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/net/net