Skip to content

Commit 8082504

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 bbdcbc8 commit 8082504

File tree

1 file changed

+63
-0
lines changed

1 file changed

+63
-0
lines changed
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
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 all the speciafic allowed types for **bpf**\ () system call
34+
commands, maps, programs, and attach types, as well as the
35+
*bpffs* mount point used to set the token information.
36+
37+
bpftool prog help
38+
Print short help message.
39+
40+
OPTIONS
41+
========
42+
.. include:: common_options.rst
43+
44+
EXAMPLES
45+
========
46+
|
47+
| **# mkdir -p /sys/fs/bpf/token**
48+
| **# mount -t bpf bpffs /sys/fs/bpf/token** \
49+
| **-o delegate_cmds=prog_load:map_create** \
50+
| **-o delegate_progs=kprobe** \
51+
| **-o delegate_attachs=xdp**
52+
| **# bpftool token list**
53+
54+
::
55+
56+
token_info /sys/fs/bpf/token
57+
allowed_cmds:
58+
map_create prog_load
59+
allowed_maps:
60+
allowed_progs:
61+
kprobe
62+
allowed_attachs:
63+
xdp

0 commit comments

Comments
 (0)