bpf: Allow cgroup sock filters to use get_current_uid_gid helper
authorDavid Ahern <dsahern@gmail.com>
Thu, 31 Aug 2017 22:05:45 +0000 (15:05 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Sep 2017 05:05:15 +0000 (06:05 +0100)
commitae2cf1c466bea99e927899707aed022942505d27
tree43d9417f06dc3330cb01741daeb32c0e92cb0271
parent482dca939fb7ee35ba20b944b4c2476133dbf0df
bpf: Allow cgroup sock filters to use get_current_uid_gid helper

Allow BPF programs run on sock create to use the get_current_uid_gid
helper. IPv4 and IPv6 sockets are created in a process context so
there is always a valid uid/gid

Signed-off-by: David Ahern <dsahern@gmail.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/filter.c