Commit 35e81d8
selftests/bpf: verify bpf_get_netns_cookie in BPF_PROG_TYPE_CGROUP_SOCKOPT
Add verifier ctx test to call bpf_get_netns_cookie from
cgroup/setsockopt.
#269/p pass ctx or null check, 1: ctx Did not run the program (not supported) OK
#270/p pass ctx or null check, 2: null Did not run the program (not supported) OK
#271/p pass ctx or null check, 3: 1 OK
#272/p pass ctx or null check, 4: ctx - const OK
#273/p pass ctx or null check, 5: null (connect) Did not run the program (not supported) OK
#274/p pass ctx or null check, 6: null (bind) Did not run the program (not supported) OK
#275/p pass ctx or null check, 7: ctx (bind) Did not run the program (not supported) OK
#276/p pass ctx or null check, 8: null (bind) OK
#277/p pass ctx or null check, 9: ctx (cgroup/setsockopt) Did not run the program (not supported) OK
#278/p pass ctx or null check, 10: null (cgroup/setsockopt) Did not run the program (not supported) OK
Signed-off-by: Stanislav Fomichev <sdf@google.com>1 parent b5eaf48 commit 35e81d8
1 file changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
0 commit comments