summaryrefslogtreecommitdiffstats
path: root/samples/bpf/sock_flags_kern.c
Commit message (Collapse)AuthorAgeFilesLines
* samples/bpf: Update cgroup socket examples to use uid gid helperDavid Ahern2017-09-011-0/+5
| | | | | | Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Alexei Starovoitov <ast@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
* samples/bpf: add userspace example for prohibiting socketsDavid Ahern2016-12-021-0/+44
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>