1.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2 3================ 4bpftool-token 5================ 6------------------------------------------------------------------------------- 7tool for inspection and simple manipulation of eBPF tokens 8------------------------------------------------------------------------------- 9 10:Manual section: 8 11 12.. include:: substitutions.rst 13 14SYNOPSIS 15======== 16 17**bpftool** [*OPTIONS*] **token** *COMMAND* 18 19*OPTIONS* := { |COMMON_OPTIONS| } 20 21*COMMANDS* := { **show** | **list** | **help** } 22 23TOKEN COMMANDS 24=============== 25 26| **bpftool** **token** { **show** | **list** } 27| **bpftool** **token help** 28| 29 30DESCRIPTION 31=========== 32bpftool 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 38bpftool prog help 39 Print short help message. 40 41OPTIONS 42======== 43.. include:: common_options.rst 44 45EXAMPLES 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 65