Merge pull request #23407 from keszybz/bpf-cleanup-warning

Clean up bpf cleanup warning
This commit is contained in:
Yu Watanabe
2022-05-17 20:31:10 +09:00
committed by GitHub
4 changed files with 18 additions and 16 deletions
+1 -2
View File
@@ -78,8 +78,7 @@ int main(int argc, char *argv[]) {
if (!can_memlock())
return log_tests_skipped("Can't use mlock()");
r = lsm_bpf_supported();
if (r <= 0)
if (!lsm_bpf_supported(/* initialize = */ true))
return log_tests_skipped("LSM BPF hooks are not supported");
r = enter_cgroup_subroot(NULL);