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: NDavid Ahern <dsa@cumulusnetworks.com> Acked-by: NAlexei Starovoitov <ast@kernel.org> Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Showing
samples/bpf/sock_flags_kern.c
0 → 100644
samples/bpf/test_cgrp2_sock2.c
0 → 100644
samples/bpf/test_cgrp2_sock2.sh
0 → 100755
想要评论请 注册 或 登录