[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAF=yD-J2Z+KqxpnkfZkNUYDR4do8wEBSHims2TTMGgpdwm9SLg@mail.gmail.com>
Date: Thu, 23 Feb 2017 12:03:58 -0500
From: Willem de Bruijn <willemdebruijn.kernel@...il.com>
To: Chenbo Feng <chenbofeng.kernel@...il.com>
Cc: Network Development <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...com>,
Daniel Borkmann <daniel@...earbox.net>,
Lorenzo Colitti <lorenzo@...gle.com>,
Willem de Bruijn <willemb@...gle.com>,
Chenbo Feng <fengc@...gle.com>
Subject: Re: [PATCH net-next v3 2/3] Add a eBPF helper function to retrieve
socket uid
> +BPF_CALL_1(bpf_get_socket_uid, struct sk_buff *, skb)
> +{
> + struct sock *sk = sk_to_full_sk(skb->sk);
> + kuid_t kuid = sock_net_uid(dev_net(skb->dev), sk);
dev_net cannot handle a NULL skb->dev
Powered by blists - more mailing lists