Lines Matching refs:allow_prog
82 int allow_prog[7] = {-1};
87 for (i = 0; i < ARRAY_SIZE(allow_prog); i++) {
88 allow_prog[i] = prog_load_cnt(1, 1 << i);
89 if (CHECK(allow_prog[i] < 0, "prog_load",
116 if (CHECK(bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS,
121 if (CHECK(!bpf_prog_attach(allow_prog[0], cg1, BPF_CGROUP_INET_EGRESS,
126 if (CHECK(bpf_prog_attach(allow_prog[1], cg1, BPF_CGROUP_INET_EGRESS,
131 if (CHECK(bpf_prog_attach(allow_prog[2], cg2, BPF_CGROUP_INET_EGRESS,
136 if (CHECK(bpf_prog_attach(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS,
141 if (CHECK(bpf_prog_attach(allow_prog[4], cg4, BPF_CGROUP_INET_EGRESS,
146 if (CHECK(bpf_prog_attach(allow_prog[5], cg5, BPF_CGROUP_INET_EGRESS, 0),
196 attach_opts.replace_prog_fd = allow_prog[0];
197 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
204 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
212 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
219 attach_opts.replace_prog_fd = allow_prog[3];
220 if (CHECK(!bpf_prog_attach_opts(allow_prog[6], cg1,
227 attach_opts.replace_prog_fd = allow_prog[0];
228 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1,
234 attach_opts.replace_prog_fd = allow_prog[6];
235 if (CHECK(bpf_prog_attach_opts(allow_prog[6], cg1,
251 if (CHECK(bpf_prog_detach2(allow_prog[3], cg3, BPF_CGROUP_INET_EGRESS),
283 for (i = 0; i < ARRAY_SIZE(allow_prog); i++)
284 if (allow_prog[i] >= 0)
285 close(allow_prog[i]);