LAWS.seccomp_example_write: law of bend-osdev-bpf@0.1.0.0 Import: import bend-osdev-bpf@0.1.0.0/LAWS.bend as LAWS Lines 309-312 of bend-osdev-bpf@0.1.0.0/LAWS.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bpf@0.1.0.0/LAWS.bend&start_line=309&end_line=312 import Base import bend-osdev-bpf@0.1.0.0/insn.bend as I import bend-osdev-bpf@0.1.0.0/seccomp.bend as S # the page's runs: ./a.out 1 0xC000003E 99 makes write (1) fail, and # ./a.out 295 0xC000003E 99 leaves the calls whoami makes alone law seccomp_example_write: {S.seccomp_run(S.seccomp_order(), seccomp_example(1, 99), sc_call(1, S.seccomp_arch_x86_64())) == Done{S.SeccompErrno{99}} : Result<&2, &2, I.BpfError, S.SeccompAction>} Uses (8): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Result https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/LAWS.bend&name=sc_call https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/LAWS.bend&name=seccomp_example https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/insn.bend&name=BpfError https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&name=SeccompAction https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&name=seccomp_arch_x86_64 https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&name=seccomp_order https://jend.leeeet.dev/definition.txt?path=bend-osdev-bpf@0.1.0.0/seccomp.bend&name=seccomp_run