Searched refs:cgroup_fd2 (Results 1 – 1 of 1) sorted by relevance
/Linux-v6.1/tools/testing/selftests/bpf/prog_tests/ |
D | lsm_cgroup.c | 68 int cgroup_fd = -1, cgroup_fd2 = -1, cgroup_fd3 = -1; in test_lsm_cgroup_functional() local 86 cgroup_fd2 = test__join_cgroup("/sock_policy_reuse"); in test_lsm_cgroup_functional() 87 if (!ASSERT_GE(cgroup_fd2, 0, "create cgroup for reuse")) in test_lsm_cgroup_functional() 167 ASSERT_EQ(query_prog_cnt(cgroup_fd2, "bpf_lsm_socket_bind"), 0, "prog count"); in test_lsm_cgroup_functional() 168 bind_link_fd2 = bpf_link_create(bind_prog_fd2, cgroup_fd2, in test_lsm_cgroup_functional() 172 ASSERT_EQ(query_prog_cnt(cgroup_fd2, "bpf_lsm_socket_bind"), 1, "prog count"); in test_lsm_cgroup_functional() 174 ASSERT_EQ(query_prog_cnt(cgroup_fd2, NULL), 1, "total prog count"); in test_lsm_cgroup_functional() 292 close(cgroup_fd2); in test_lsm_cgroup_functional()
|