Searched refs:bpf (Results 1 – 4 of 4) sorted by relevance
/bionic/libc/tools/ |
D | genseccomp.py | 172 bpf = convert_priority_to_intermediate_bpf(priority_syscalls) + \ 177 for i, statement in enumerate(bpf): 184 bpf[i] = statement.format(fail=str(len(bpf) - i), 185 allow=str(len(bpf) - i - 1)) 190 bpf.append(BPF_ALLOW + ",") 193 bpf.insert(0, BPF_JGE.format(ranges[0].begin, 0, str(len(bpf))) + ',') 194 return bpf 197 def convert_bpf_to_output(bpf, architecture, name_modifier): argument 219 return header + "\n".join(bpf) + footer 226 bpf = convert_ranges_to_bpf(ranges, priority_syscalls) [all …]
|
D | test_genseccomp.py | 141 bpf = genseccomp.convert_to_intermediate_bpf(ranges) 142 self.assertEquals(bpf, ['BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 3, {fail}, {allow}), //a|b']) 145 bpf = genseccomp.convert_to_intermediate_bpf(ranges) 146 self.assertEquals(bpf, ['BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 3, 1, 0),', 152 bpf = genseccomp.convert_ranges_to_bpf(ranges) 153 self.assertEquals(bpf, ['BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 1, 0, 2),', 158 bpf = genseccomp.convert_ranges_to_bpf(ranges) 159 self.assertEquals(bpf, ['BPF_JUMP(BPF_JMP|BPF_JGE|BPF_K, 1, 0, 4),',
|
/bionic/libc/ |
D | SECCOMP_ALLOWLIST_SYSTEM.TXT | 6 int bpf(int cmd, union bpf_attr *attr, unsigned int size) all
|
D | Android.bp | 2296 // Generate the C++ policy sources for app and system seccomp-bpf filters.
|