Skip to content

Commit 52691c7

Browse files
Tao ChenKernel Patches Daemon
authored andcommitted
bpftool: Add bpftool-token manpage
Add bpftool-token manpage with information and examples of token-related commands. Signed-off-by: Tao Chen <[email protected]>
1 parent 4745ce7 commit 52691c7

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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 progs
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 all the concrete allowed_types for cmds maps progs attachs
34+
and the bpffs mount_point used to set the token info.
35+
36+
bpftool prog help
37+
Print short help message.
38+
39+
OPTIONS
40+
========
41+
.. include:: common_options.rst
42+
43+
EXAMPLES
44+
========
45+
|
46+
| **# mkdir -p /sys/fs/bpf/token**
47+
| **# mount -t bpf bpffs /sys/fs/bpf/token** \
48+
| **-o delegate_cmds=prog_load:map_create** \
49+
| **-o delegate_progs=kprobe** \
50+
| **-o delegate_attachs=xdp**
51+
| **# bpftool token list**
52+
53+
::
54+
55+
token_info:
56+
/sys/fs/bpf/token
57+
58+
allowed_cmds:
59+
map_create prog_load
60+
61+
allowed_maps:
62+
63+
allowed_progs:
64+
kprobe
65+
66+
allowed_attachs:
67+
xdp
68+

0 commit comments

Comments
 (0)