selftests/bpf: Check that bpf_kernel_read_file() denies reading IMA policy

Check that bpf_kernel_read_file() denies the reading of an IMA policy, by
ensuring that ima_setup.sh exits with an error.

Signed-off-by: Roberto Sassu <roberto.sassu@huawei.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20220302111404.193900-10-roberto.sassu@huawei.com
This commit is contained in:
Roberto Sassu 2022-03-02 12:14:04 +01:00 • committed by Alexei Starovoitov
commit 7bae42b68d
2 changed files with 35 additions and 0 deletions