diff options
| author | Pengcheng Yang <[email protected]> | 2023-05-06 03:07:19 +0000 |
|---|---|---|
| committer | Daniel Borkmann <[email protected]> | 2023-05-17 13:58:18 +0000 |
| commit | 2a36c26fe3b8e2cf39e15e80ba1abc889a75da4f (patch) | |
| tree | 7c8409b8e57913dfb54ddb0dcb252973e16f6a4d /tools/bpf/bpftool/iter.c | |
| parent | selftests/bpf: Do not use sign-file as testcase (diff) | |
| download | kernel-2a36c26fe3b8e2cf39e15e80ba1abc889a75da4f.tar.gz kernel-2a36c26fe3b8e2cf39e15e80ba1abc889a75da4f.zip | |
bpftool: Support bpffs mountpoint as pin path for prog loadall
Currently, when using prog loadall and the pin path is a bpffs mountpoint,
bpffs will be repeatedly mounted to the parent directory of the bpffs
mountpoint path. For example, a `bpftool prog loadall test.o /sys/fs/bpf`
will trigger this.
Signed-off-by: Pengcheng Yang <[email protected]>
Signed-off-by: Daniel Borkmann <[email protected]>
Reviewed-by: Quentin Monnet <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/bpf/bpftool/iter.c')
| -rw-r--r-- | tools/bpf/bpftool/iter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/iter.c b/tools/bpf/bpftool/iter.c index 9a1d2365a297..6b0e5202ca7a 100644 --- a/tools/bpf/bpftool/iter.c +++ b/tools/bpf/bpftool/iter.c @@ -76,7 +76,7 @@ static int do_pin(int argc, char **argv) goto close_obj; } - err = mount_bpffs_for_pin(path); + err = mount_bpffs_for_pin(path, false); if (err) goto close_link; |
