David Ahern
6102365876
bpf: Add new cgroup attach type to enable sock modifications
...
Add new cgroup based program type, BPF_PROG_TYPE_CGROUP_SOCK. Similar to
BPF_PROG_TYPE_CGROUP_SKB programs can be attached to a cgroup and run
any time a process in the cgroup opens an AF_INET or AF_INET6 socket.
Currently only sk_bound_dev_if is exported to userspace for modification
by a bpf program.
This allows a cgroup to be configured such that AF_INET{6} sockets opened
by processes are automatically bound to a specific device. In turn, this
enables the running of programs that do not support SO_BINDTODEVICE in a
specific VRF context / L3 domain.
Signed-off-by: David Ahern <dsa@cumulusnetworks.com >
Acked-by: Alexei Starovoitov <ast@kernel.org >
Signed-off-by: David S. Miller <davem@davemloft.net >
2016-12-02 13:46:08 -05:00
..
2016-11-10 20:13:08 +01:00
2016-10-17 16:26:29 +01:00
2016-10-29 16:23:48 -04:00
2016-12-02 10:47:01 -05:00
2016-10-28 09:58:36 +02:00
2016-11-10 13:28:45 +01:00
2016-11-05 13:45:02 +05:30
2016-12-02 12:44:37 -05:00
2016-11-14 10:30:58 -05:00
2016-11-11 23:23:02 +01:00
2016-10-14 12:18:50 -07:00
2016-11-22 13:27:16 -05:00
2016-12-02 13:46:08 -05:00
2016-11-21 11:25:58 -05:00
2016-11-30 10:22:27 -05:00
2016-11-25 16:25:52 -05:00
2016-10-14 12:18:50 -07:00
2016-10-17 15:27:27 -07:00
2016-10-15 10:03:15 -07:00
2016-11-11 08:12:37 -08:00
2016-10-20 16:35:50 +02:00
2016-10-20 20:10:17 +02:00
2016-11-04 14:56:16 -04:00
2016-11-15 22:34:25 -05:00
2016-10-27 16:16:09 -04:00
2016-10-14 14:26:58 -07:00
2016-10-20 14:51:10 -04:00
2016-10-15 10:03:15 -07:00
2016-12-02 11:06:24 -05:00
2016-11-11 08:12:37 -08:00
2016-10-30 13:09:42 -04:00
2016-10-27 16:16:09 -04:00
2016-10-20 14:51:09 -04:00
2016-10-20 14:51:10 -04:00
2016-11-17 09:46:56 -08:00
2016-10-29 15:03:14 -04:00
2016-10-27 16:03:24 +02:00
2016-11-27 20:38:47 -05:00
2016-11-15 12:16:13 -05:00
2016-10-15 10:03:15 -07:00
2016-10-26 15:45:38 +10:00
2016-10-20 15:51:28 +11:00
2016-11-15 10:54:36 -05:00
2016-10-16 11:02:31 +02:00
2016-10-27 18:43:43 -07:00
2016-11-18 13:54:21 -05:00
2016-11-02 15:17:09 -04:00
2016-10-24 19:13:20 -07:00
2016-10-27 09:27:57 -07:00
2016-12-02 13:28:37 -05:00
2016-11-03 11:52:58 +01:00
2016-11-03 11:52:58 +01:00
2016-11-16 18:32:02 -05:00
2016-10-19 11:36:22 -06:00
2016-10-28 11:06:25 +02:00
2016-10-18 11:56:31 -04:00
2016-12-01 11:26:47 -05:00
2016-10-31 16:18:30 -04:00
2016-10-14 11:36:59 -07:00
2016-10-31 10:56:36 -04:00
2016-11-09 21:19:53 -05:00
2016-10-15 10:03:15 -07:00
2016-10-29 12:14:39 -06:00
2016-11-22 12:33:43 +01:00
2016-11-09 20:40:06 -05:00
2016-11-09 20:40:06 -05:00
2016-11-09 20:40:06 -05:00
2016-11-09 20:40:06 -05:00
2016-11-19 22:11:25 -05:00
2016-10-18 14:14:20 -04:00
2016-11-09 13:21:25 -05:00
2016-10-17 09:50:56 -07:00
2016-12-02 12:49:59 -05:00
2016-10-20 13:27:47 +02:00
2016-11-19 10:37:03 -05:00