Skip to content

Commit b7f6400

Browse files
Tao ChenAlexei Starovoitov
authored andcommitted
bpftool: Add bpftool-token manpage
Add bpftool-token manpage with information and examples of token-related commands. Suggested-by: Quentin Monnet <[email protected]> Reviewed-by: Quentin Monnet <[email protected]> Signed-off-by: Tao Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
1 parent 2d81231 commit b7f6400

File tree

1 file changed

+64
-0
lines changed

1 file changed

+64
-0
lines changed
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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

0 commit comments

Comments
 (0)