summaryrefslogtreecommitdiffstats
path: root/samples/bpf/xdp1_kern.c
diff options
context:
space:
mode:
authorBrenden Blanco2016-07-21 02:22:34 +0200
committerDavid S. Miller2016-07-21 07:07:23 +0200
commit262d8625045e0c81b7859ecd192e9811710f19da (patch)
tree7a0d58ff3aa3c0268bb7b33e49d766745496762f /samples/bpf/xdp1_kern.c
parentnet/mlx4_en: use READ_ONCE when freeing xdp_prog (diff)
downloadkernel-qcow2-linux-262d8625045e0c81b7859ecd192e9811710f19da.tar.gz
kernel-qcow2-linux-262d8625045e0c81b7859ecd192e9811710f19da.tar.xz
kernel-qcow2-linux-262d8625045e0c81b7859ecd192e9811710f19da.zip
rtnl: protect do_setlink from IFLA_XDP_ATTACHED
The IFLA_XDP_ATTACHED nested attribute is meant for read-only, and while do_setlink properly ignores it, it should be more paranoid and reject commands that try to set it. Signed-off-by: Brenden Blanco <bblanco@plumgrid.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/bpf/xdp1_kern.c')
0 files changed, 0 insertions, 0 deletions