Searched refs:cgroup_fd2 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | lsm_cgroup.c | 69 int cgroup_fd = -1, cgroup_fd2 = -1, cgroup_fd3 = -1; in test_lsm_cgroup_functional() local 87 cgroup_fd2 = test__join_cgroup("/sock_policy_reuse"); in test_lsm_cgroup_functional() 88 if (!ASSERT_GE(cgroup_fd2, 0, "create cgroup for reuse")) in test_lsm_cgroup_functional() 168 ASSERT_EQ(query_prog_cnt(cgroup_fd2, "bpf_lsm_socket_bind"), 0, "prog count"); in test_lsm_cgroup_functional() 169 bind_link_fd2 = bpf_link_create(bind_prog_fd2, cgroup_fd2, in test_lsm_cgroup_functional() 173 ASSERT_EQ(query_prog_cnt(cgroup_fd2, "bpf_lsm_socket_bind"), 1, "prog count"); in test_lsm_cgroup_functional() 175 ASSERT_EQ(query_prog_cnt(cgroup_fd2, NULL), 1, "total prog count"); in test_lsm_cgroup_functional() 302 close(cgroup_fd2); in test_lsm_cgroup_functional()
|