diff options
author | Roman Gushchin <guro@fb.com> | 2019-06-06 13:30:12 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-06-07 01:56:52 +0200 |
commit | 4ecabd55c90469629460f035f4bf4c8ae3d2743b (patch) | |
tree | 5faa9fe5ad15c803f89b3b44ec10eb0b4d605316 /kernel/bpf | |
parent | 07c3bbdb1a9b2046631a2a2950a0c16e10cfcab3 (diff) | |
download | linux-4ecabd55c90469629460f035f4bf4c8ae3d2743b.tar.bz2 |
bpf: allow CGROUP_SKB programs to use bpf_skb_cgroup_id() helper
Currently bpf_skb_cgroup_id() is not supported for CGROUP_SKB
programs. An attempt to load such a program generates an error
like this:
libbpf:
0: (b7) r6 = 0
...
9: (85) call bpf_skb_cgroup_id#79
unknown func bpf_skb_cgroup_id#79
There are no particular reasons for denying it, and we have some
use cases where it might be useful.
So let's add it to the list of allowed helpers.
Signed-off-by: Roman Gushchin <guro@fb.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'kernel/bpf')
0 files changed, 0 insertions, 0 deletions