File tree Expand file tree Collapse file tree 1 file changed +64
-0
lines changed
tools/bpf/bpftool/Documentation Expand file tree Collapse file tree 1 file changed +64
-0
lines changed Original file line number Diff line number Diff line change
1
+ .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
+
3
+ ================
4
+ bpftool-token
5
+ ================
6
+ -------------------------------------------------------------------------------
7
+ tool for inspection and simple manipulation of eBPF tokens
8
+ -------------------------------------------------------------------------------
9
+
10
+ :Manual section: 8
11
+
12
+ .. include :: substitutions.rst
13
+
14
+ SYNOPSIS
15
+ ========
16
+
17
+ **bpftool ** [*OPTIONS *] **token ** *COMMAND *
18
+
19
+ *OPTIONS * := { |COMMON_OPTIONS | }
20
+
21
+ *COMMANDS * := { **show ** | **list ** | **help ** }
22
+
23
+ TOKEN COMMANDS
24
+ ===============
25
+
26
+ | **bpftool** **token** { **show** | **list** }
27
+ | **bpftool** **token help**
28
+ |
29
+
30
+ DESCRIPTION
31
+ ===========
32
+ bpftool token { show | list }
33
+ List BPF token information for each *bpffs * mount point containing token
34
+ information on the system. Information include mount point path, allowed
35
+ **bpf **\ () system call commands, maps, programs, and attach types for the
36
+ token.
37
+
38
+ bpftool prog help
39
+ Print short help message.
40
+
41
+ OPTIONS
42
+ ========
43
+ .. include :: common_options.rst
44
+
45
+ EXAMPLES
46
+ ========
47
+ |
48
+ | **# mkdir -p /sys/fs/bpf/token**
49
+ | **# mount -t bpf bpffs /sys/fs/bpf/token** \
50
+ | **-o delegate_cmds=prog_load:map_create** \
51
+ | **-o delegate_progs=kprobe** \
52
+ | **-o delegate_attachs=xdp**
53
+ | **# bpftool token list**
54
+
55
+ ::
56
+
57
+ token_info /sys/fs/bpf/token
58
+ allowed_cmds:
59
+ map_create prog_load
60
+ allowed_maps:
61
+ allowed_progs:
62
+ kprobe
63
+ allowed_attachs:
64
+ xdp
You can’t perform that action at this time.
0 commit comments