Home
last modified time | relevance | path

Searched refs:bpf (Results 1 – 4 of 4) sorted by relevance

/bionic/libc/tools/
Dgenseccomp.py172 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 …]
Dtest_genseccomp.py141 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/
DSECCOMP_ALLOWLIST_SYSTEM.TXT6 int bpf(int cmd, union bpf_attr *attr, unsigned int size) all
DAndroid.bp2296 // Generate the C++ policy sources for app and system seccomp-bpf filters.