-
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
Upstream branch: 95993dc |
9dc9a5c
to
43a0c55
Compare
Upstream branch: 95993dc |
43a0c55
to
213932e
Compare
At least one diff in series https://patchwork.kernel.org/project/netdevbpf/list/?series=984695 expired. Closing PR. |
Upstream branch: 95993dc |
213932e
to
554cb25
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 <chen.dylane@linux.dev>
Add bpftool-token manpage with information and examples of token-related commands. Suggested-by: Quentin Monnet <qmo@kernel.org> Signed-off-by: Tao Chen <chen.dylane@linux.dev> Reviewed-by: Quentin Monnet <qmo@kernel.org>
This commit updates the bash completion script with the new token argument. $ bpftool token help list show Reviewed-by: Quentin Monnet <qmo@kernel.org> Signed-off-by: Tao Chen <chen.dylane@linux.dev>
Upstream branch: 95993dc |
554cb25
to
1524d8d
Compare
Pull request for series with
subject: bpftool: Add bpf_token show
version: 1
url: https://patchwork.kernel.org/project/netdevbpf/list/?series=984111