Home
last modified time | relevance | path

Searched refs:filter (Results 1 – 6 of 6) sorted by relevance

/samples/seccomp/
Dbpf-helper.c19 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() argument
21 struct sock_filter *begin = filter; in bpf_resolve_jumps()
30 filter += insn; in bpf_resolve_jumps()
31 for (; filter >= begin; --insn, --filter) { in bpf_resolve_jumps()
32 if (filter->code != (BPF_JMP+BPF_JA)) in bpf_resolve_jumps()
34 switch ((filter->jt<<8)|filter->jf) { in bpf_resolve_jumps()
36 if (labels->labels[filter->k].location == 0xffffffff) { in bpf_resolve_jumps()
38 labels->labels[filter->k].label); in bpf_resolve_jumps()
41 filter->k = labels->labels[filter->k].location - in bpf_resolve_jumps()
43 filter->jt = 0; in bpf_resolve_jumps()
[all …]
Ddropper.c30 struct sock_filter filter[] = { in install_filter() local
42 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_filter()
43 .filter = filter, in install_filter()
Dbpf-fancy.c34 struct sock_filter filter[] = { in main() local
81 .filter = filter, in main()
82 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in main()
85 bpf_resolve_jumps(&l, filter, sizeof(filter)/sizeof(*filter)); in main()
Dbpf-direct.c112 struct sock_filter filter[] = { in install_filter() local
145 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_filter()
146 .filter = filter, in install_filter()
Dbpf-helper.h35 struct sock_filter *filter, size_t count);
37 void seccomp_bpf_print(struct sock_filter *filter, size_t count);
/samples/bpf/
Dtracex5_user.c15 struct sock_filter filter[] = { in install_accept_all_seccomp() local
19 .len = (unsigned short)(sizeof(filter)/sizeof(filter[0])), in install_accept_all_seccomp()
20 .filter = filter, in install_accept_all_seccomp()