Files
kernel_arpi/include/uapi/linux
Stanislav Fomichev f5836749c9 bpf: Add BPF_CGROUP_INET_SOCK_RELEASE hook
Sometimes it's handy to know when the socket gets freed. In
particular, we'd like to try to use a smarter allocation of
ports for bpf_bind and explore the possibility of limiting
the number of SOCK_DGRAM sockets the process can have.

Implement BPF_CGROUP_INET_SOCK_RELEASE hook that triggers on
inet socket release. It triggers only for userspace sockets
(not in-kernel ones) and therefore has the same semantics as
the existing BPF_CGROUP_INET_SOCK_CREATE.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200706230128.4073544-2-sdf@google.com
2020-07-08 01:03:31 +02:00
..
2020-05-28 11:22:14 +02:00
2019-12-18 18:07:31 +01:00
2020-04-27 16:29:41 +05:30
2020-06-29 17:45:02 -07:00
2020-05-14 16:44:25 +02:00
2020-05-28 22:09:47 -04:00
2020-04-20 12:43:24 -07:00
2020-05-17 14:10:07 -06:00
2020-05-01 10:00:19 -04:00
2020-05-21 08:20:35 -06:00
2020-03-29 22:30:57 -07:00
2020-03-29 22:14:49 -07:00
2020-01-18 09:19:18 -05:00
2020-05-21 17:04:07 -07:00
2020-03-29 22:30:57 -07:00
2020-01-26 15:28:47 +01:00
2019-12-18 18:07:31 +01:00
2020-03-29 23:29:08 +02:00
2020-04-20 07:26:42 +02:00