Home
last modified time | relevance | path

Searched refs:SockFilter (Results 1 – 3 of 3) sorted by relevance

/external/libcap/contrib/seccomp/
Dexplore.go77 type SockFilter struct { struct
95 Filter *SockFilter
99 type SockFilterSlice []SockFilter
101 func bpfStmt(code uint16, k uint32) SockFilter {
102 return SockFilter{code, 0, 0, k}
105 func bpfJump(code uint16, k uint32, jt uint8, jf uint8) SockFilter {
106 return SockFilter{code, jt, jf, k}
109 func validateArchitecture() []SockFilter {
110 return []SockFilter{
117 func ExamineSyscall() []SockFilter {
[all …]
/external/minijail/tools/
Dbpf.py148 class SockFilter( class
201 [SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_KILL_PROCESS)])
209 [SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_KILL_THREAD)])
216 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_TRAP)])
223 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_TRACE)])
230 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_USER_NOTIF)])
237 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_LOG)])
245 SockFilter(BPF_RET, 0x00, 0x00,
255 super().__init__([SockFilter(BPF_RET, 0x00, 0x00, SECCOMP_RET_ALLOW)])
628 return [SockFilter(BPF_LD | BPF_W | BPF_ABS, 0, 0, offset)]
[all …]
Dcompiler_unittest.py76 bpf.SockFilter(bpf.BPF_LD | bpf.BPF_W | bpf.BPF_ABS, 0, 0,
79 bpf.SockFilter(bpf.BPF_JMP | bpf.BPF_JEQ | bpf.BPF_K, 0, 2, 0),
80 bpf.SockFilter(bpf.BPF_LD | bpf.BPF_W | bpf.BPF_ABS, 0, 0,
83 bpf.SockFilter(bpf.BPF_JMP | bpf.BPF_JEQ | bpf.BPF_K, 1, 0,
85 bpf.SockFilter(bpf.BPF_RET, 0, 0,
87 bpf.SockFilter(bpf.BPF_RET, 0, 0, bpf.SECCOMP_RET_ALLOW),