aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
diff options
context:
space:
mode:
authorKP Singh <[email protected]>2020-12-03 19:14:34 +0000
committerAndrii Nakryiko <[email protected]>2020-12-03 19:20:20 +0000
commit3db980449bc3b9765c78210787bcbf4305636982 (patch)
tree3849b83ca258ed650c5eddc1654f0ad01d2c0be7 /tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c
parentMerge branch 'libbpf: add support for privileged/unprivileged control separat... (diff)
downloadkernel-3db980449bc3b9765c78210787bcbf4305636982.tar.gz
kernel-3db980449bc3b9765c78210787bcbf4305636982.zip
selftests/bpf: Update ima_setup.sh for busybox
losetup on busybox does not output the name of loop device on using -f with --show. It also doesn't support -j to find the loop devices for a given backing file. losetup is updated to use "-a" which is available on busybox. blkid does not support options (-s and -o) to only display the uuid, so parse the output instead. Not all environments have mkfs.ext4, the test requires a loop device with a backing image file which could formatted with any filesystem. Update to using mkfs.ext2 which is available on busybox. Fixes: 34b82d3ac105 ("bpf: Add a selftest for bpf_ima_inode_hash") Reported-by: Andrii Nakryiko <[email protected]> Signed-off-by: KP Singh <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c')
0 files changed, 0 insertions, 0 deletions