diff options
| author | KP Singh <[email protected]> | 2020-12-03 19:14:35 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2020-12-03 19:20:21 +0000 |
| commit | 1ee076719d4e14c005f375c50731ed44eb48fee4 (patch) | |
| tree | 92ff769902cb993f171026231cd9c751002a3433 /tools/testing/selftests/bpf/prog_tests/tcpbpf_user.c | |
| parent | selftests/bpf: Update ima_setup.sh for busybox (diff) | |
| download | kernel-1ee076719d4e14c005f375c50731ed44eb48fee4.tar.gz kernel-1ee076719d4e14c005f375c50731ed44eb48fee4.zip | |
selftests/bpf: Ensure securityfs mount before writing ima policy
SecurityFS may not be mounted even if it is enabled in the kernel
config. So, check if the mount exists in /proc/mounts by parsing the
file and, if not, mount it on /sys/kernel/security.
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
