samples/bpf: add userspace example for prohibiting sockets
Add examples preventing a process in a cgroup from opening a socket based family, protocol and type. Signed-off-by:David Ahern <dsa@cumulusnetworks.com> Acked-by:
Alexei Starovoitov <ast@kernel.org> Signed-off-by:
David S. Miller <davem@davemloft.net>
Showing
- samples/bpf/Makefile 4 additions, 0 deletionssamples/bpf/Makefile
- samples/bpf/sock_flags_kern.c 44 additions, 0 deletionssamples/bpf/sock_flags_kern.c
- samples/bpf/test_cgrp2_sock2.c 66 additions, 0 deletionssamples/bpf/test_cgrp2_sock2.c
- samples/bpf/test_cgrp2_sock2.sh 81 additions, 0 deletionssamples/bpf/test_cgrp2_sock2.sh
Loading
Please register or sign in to comment