]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
bpf: remove type arg from __is_valid_{,xdp_}access
authorDaniel Borkmann <daniel@iogearbox.net>
Sun, 4 Dec 2016 22:19:39 +0000 (23:19 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 5 Dec 2016 20:33:10 +0000 (15:33 -0500)
commit1afaf661b20a075a22eef3332db187001a334b81
tree828e82ba4e9a2600b083dd632cfaa0d7979b970f
parent70f23a807dcab4ee3467c70ba2c7be69026f0a67
bpf: remove type arg from __is_valid_{,xdp_}access

Commit d691f9e8d440 ("bpf: allow programs to write to certain skb
fields") pushed access type check outside of __is_valid_access()
to have different restrictions for socket filters and tc programs.
type is thus not used anymore within __is_valid_access() and should
be removed as a function argument. Same for __is_valid_xdp_access()
introduced by 6a773a15a1e8 ("bpf: add XDP prog type for early driver
filter").

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