Files
kernel_xiaomi_sm8250/include/uapi/linux
Daniel Borkmann 8d20aabe1c ebpf: add helper to retrieve net_cls's classid cookie
It would be very useful to retrieve the net_cls's classid from an eBPF
program to allow for a more fine-grained classification, it could be
directly used or in conjunction with additional policies. I.e. docker,
but also tooling such as cgexec, can easily run applications via net_cls
cgroups:

  cgcreate -g net_cls:/foo
  echo 42 > foo/net_cls.classid
  cgexec -g net_cls:foo <prog>

Thus, their respecitve classid cookie of foo can then be looked up on
the egress path to apply further policies. The helper is desigend such
that a non-zero value returns the cgroup id.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Cc: Thomas Graf <tgraf@suug.ch>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-07-20 12:41:30 -07:00
..
2015-05-23 10:49:55 +01:00
2015-04-21 16:16:02 -04:00
2015-02-23 09:59:07 -06:00
2015-06-23 13:35:47 +09:00
2015-04-12 21:25:13 -04:00
2015-07-01 16:26:08 +02:00
2015-06-01 10:45:51 +09:00
2015-05-13 15:43:00 -04:00
2015-05-25 13:25:35 -04:00
2015-02-17 14:34:51 -08:00
2015-05-05 13:40:44 -06:00
2015-06-01 10:25:37 -04:00
2015-04-23 15:16:14 -04:00
2015-06-05 10:58:34 -06:00
2015-03-05 22:08:42 -05:00
2015-05-24 12:49:16 -07:00
2015-06-11 23:37:37 +02:00
2015-06-03 14:17:38 +02:00
2015-03-29 12:13:52 +10:30
2015-03-31 13:58:35 -04:00