-
Notifications
You must be signed in to change notification settings - Fork 146
bpftool: Add bpf_token show #9332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: bpf-next_base
Are you sure you want to change the base?
Conversation
Upstream branch: 42be23e |
ffefc6d
to
4ccf98a
Compare
Upstream branch: 42be23e |
a3a34f4
to
7545dd9
Compare
4ccf98a
to
95edab2
Compare
Upstream branch: 95993dc |
7545dd9
to
9dc9a5c
Compare
Add `bpftool token show` command to get token info from bpffs in /proc/mounts. Example plain output for `token show`: token_info /sys/fs/bpf/token allowed_cmds: map_create prog_load allowed_maps: allowed_progs: kprobe allowed_attachs: xdp token_info /sys/fs/bpf/token2 allowed_cmds: map_create prog_load allowed_maps: allowed_progs: kprobe allowed_attachs: xdp Example json output for `token show`: [{ "token_info": "/sys/fs/bpf/token", "allowed_cmds": ["map_create", "prog_load"], "allowed_maps": [], "allowed_progs": ["kprobe"], "allowed_attachs": ["xdp"] }, { "token_info": "/sys/fs/bpf/token2", "allowed_cmds": ["map_create", "prog_load"], "allowed_maps": [], "allowed_progs": ["kprobe"], "allowed_attachs": ["xdp"] }] Signed-off-by: Tao Chen <[email protected]>
Upstream branch: 95993dc |
Add bpftool-token manpage with information and examples of token-related commands. Signed-off-by: Tao Chen <[email protected]>
This commit updates the bash completion script with the new token argument. $ bpftool batch cgroup gen iter map perf struct_ops btf feature help link net prog token Signed-off-by: Tao Chen <[email protected]>
9dc9a5c
to
43a0c55
Compare
Pull request for series with
subject: bpftool: Add bpf_token show
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=984111