diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-10-07 19:21:02 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2019-10-08 06:16:33 +0300 |
commit | a11c397c43d5b27491aa2f36276713cf151a4735 (patch) | |
tree | 476fdf9ca012d3b72a41e2d0904282ce1801df18 /Documentation/bpf/prog_flow_dissector.rst | |
parent | 4564a8bb57e4240c08ce2db5194bfa2e71f57730 (diff) | |
download | linux-a11c397c43d5b27491aa2f36276713cf151a4735.tar.xz |
bpf/flow_dissector: add mode to enforce global BPF flow dissector
Always use init_net flow dissector BPF program if it's attached and fall
back to the per-net namespace one. Also, deny installing new programs if
there is already one attached to the root namespace.
Users can still detach their BPF programs, but can't attach any
new ones (-EEXIST).
Cc: Petar Penkov <ppenkov@google.com>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Song Liu <songliubraving@fb.com>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'Documentation/bpf/prog_flow_dissector.rst')
-rw-r--r-- | Documentation/bpf/prog_flow_dissector.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Documentation/bpf/prog_flow_dissector.rst b/Documentation/bpf/prog_flow_dissector.rst index a78bf036cadd..4d86780ab0f1 100644 --- a/Documentation/bpf/prog_flow_dissector.rst +++ b/Documentation/bpf/prog_flow_dissector.rst @@ -142,3 +142,6 @@ BPF flow dissector doesn't support exporting all the metadata that in-kernel C-based implementation can export. Notable example is single VLAN (802.1Q) and double VLAN (802.1AD) tags. Please refer to the ``struct bpf_flow_keys`` for a set of information that's currently can be exported from the BPF context. + +When BPF flow dissector is attached to the root network namespace (machine-wide +policy), users can't override it in their child network namespaces. |