/linux/include/uapi/linux/netfilter/ |
H A D | xt_bpf.h | 10 #define XT_BPF_PATH_MAX (XT_BPF_MAX_NUM_INSTR * sizeof(struct sock_filter)) 16 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR]; 34 struct sock_filter bpf_program[XT_BPF_MAX_NUM_INSTR];
|
/linux/samples/seccomp/ |
H A D | bpf-helper.c | 20 struct sock_filter *filter, size_t count) in bpf_resolve_jumps() 32 struct sock_filter *instr = &filter[offset]; in bpf_resolve_jumps() 90 void seccomp_bpf_print(struct sock_filter *filter, size_t count) in seccomp_bpf_print() 92 struct sock_filter *end = filter + count; in seccomp_bpf_print()
|
H A D | dropper.c | 30 struct sock_filter filter[] = { in install_filter() 46 struct sock_filter kill = BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL); in install_filter()
|
H A D | bpf-fancy.c | 35 struct sock_filter filter[] = { in main()
|
H A D | bpf-helper.h | 36 struct sock_filter *filter, size_t count); 38 void seccomp_bpf_print(struct sock_filter *filter, size_t count);
|
H A D | bpf-direct.c | 113 struct sock_filter filter[] = { in install_filter()
|
/linux/tools/include/uapi/linux/ |
H A D | filter.h | 24 struct sock_filter { /* Filter block */ struct 33 struct sock_filter *filter; argument
|
/linux/include/uapi/linux/ |
H A D | filter.h | 24 struct sock_filter { /* Filter block */ struct 33 struct sock_filter __user *filter; argument
|
/linux/arch/um/drivers/ |
H A D | vector_user.c | 859 struct sock_filter *bpf; in uml_vector_default_bpf() 872 sizeof(struct sock_filter) * DEFAULT_BPF_LEN, UM_GFP_KERNEL); in uml_vector_default_bpf() 876 bpf[0] = (struct sock_filter){ 0x20, 0, 0, 0x00000008 }; in uml_vector_default_bpf() 878 bpf[1] = (struct sock_filter){ 0x15, 0, 3, ntohl(*mac1)}; in uml_vector_default_bpf() 880 bpf[2] = (struct sock_filter){ 0x28, 0, 0, 0x00000006 }; in uml_vector_default_bpf() 882 bpf[3] = (struct sock_filter){ 0x15, 0, 1, ntohs(*mac2)}; in uml_vector_default_bpf() 884 bpf[4] = (struct sock_filter){ 0x6, 0, 0, 0x00000000 }; in uml_vector_default_bpf() 886 bpf[5] = (struct sock_filter){ 0x6, 0, 0, 0x00040000 }; in uml_vector_default_bpf() 898 struct sock_filter *bpf; in uml_vector_user_bpf() 915 bpf_prog->len = statbuf.st_size / sizeof(struct sock_filter); in uml_vector_user_bpf() [all...] |
/linux/tools/testing/selftests/seccomp/ |
H A D | seccomp_bpf.c | 404 struct sock_filter filter[] = { in TEST() 437 struct sock_filter allow[] = { in TEST() 440 struct sock_filter *filter; in TEST() 474 struct sock_filter allow[] = { in TEST() 477 struct sock_filter *filter; in TEST() 512 struct sock_filter filter[] = { in TEST() 535 struct sock_filter filter[] = { in TEST() 560 struct sock_filter filter[] = { in TEST() 578 struct sock_filter filter[] = { in TEST() 596 struct sock_filter filte in TEST() [all...] |
H A D | seccomp_benchmark.c | 168 struct sock_filter bitmap_filter[] = { in main() 176 struct sock_filter filter[] = { in main()
|
/linux/tools/bpf/ |
H A D | bpf_dbg.c | 131 static struct sock_filter bpf_image[BPF_MAXINSNS + 1]; 216 static void bpf_disasm(const struct sock_filter f, unsigned int i) in bpf_disasm() 438 static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f) in bpf_dump_curr() 480 static void bpf_disasm_all(const struct sock_filter *f, unsigned int len) in bpf_disasm_all() 488 static void bpf_dump_all(const struct sock_filter *f, unsigned int len) in bpf_dump_all() 498 static bool bpf_runnable(struct sock_filter *f, unsigned int len) in bpf_runnable() 632 static void bpf_single_step(struct bpf_regs *r, struct sock_filter *f, in bpf_single_step() 854 static bool bpf_handle_breakpoint(struct bpf_regs *r, struct sock_filter *f, in bpf_handle_breakpoint() 866 static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, in bpf_run_all() 886 static int bpf_run_stepping(struct sock_filter * [all...] |
/linux/net/sched/ |
H A D | act_bpf.c | 27 struct sock_filter *bpf_ops; 108 sizeof(struct sock_filter)); in tcf_bpf_dump_bpf_info() 184 .len = sizeof(struct sock_filter) * BPF_MAXINSNS }, 189 struct sock_filter *bpf_ops; in tcf_bpf_init_from_ops()
|
H A D | cls_bpf.c | 48 struct sock_filter *bpf_ops; 63 .len = sizeof(struct sock_filter) * BPF_MAXINSNS }, 341 struct sock_filter *bpf_ops; in cls_bpf_prog_from_ops() 549 sizeof(struct sock_filter)); in cls_bpf_dump_bpf_info()
|
/linux/include/net/tc_act/ |
H A D | tc_bpf.h | 19 struct sock_filter *bpf_ops;
|
/linux/net/core/ |
H A D | ptp_classifier.c | 154 static struct sock_filter ptp_filter[] __initdata = { in ptp_classifier_init()
|
/linux/samples/bpf/ |
H A D | tracex5_user.c | 24 struct sock_filter filter[] = { in install_accept_all_seccomp()
|
/linux/net/netfilter/ |
H A D | xt_bpf.c | 24 static int __bpf_mt_check_bytecode(struct sock_filter *insns, __u16 len, in __bpf_mt_check_bytecode()
|
/linux/tools/perf/bench/ |
H A D | sched-seccomp-notify.c | 51 struct sock_filter filter[] = { in user_notif_syscall()
|
/linux/tools/testing/selftests/net/ |
H A D | toeplitz.c | 289 struct sock_filter filter[] = { in __set_filter() 325 struct sock_filter filter[] = { in set_filter_null()
|
H A D | skf_net_off.c | 83 struct sock_filter filter_code[] = { in sk_set_filter()
|
H A D | reuseport_bpf.c | 133 struct sock_filter code[] = { in attach_cbpf() 346 struct sock_filter ccode[] = {{ BPF_RET | BPF_A, 0, 0, 0 }}; in test_filter_no_reuseport()
|
/linux/include/linux/ |
H A D | filter.h | 517 ((struct sock_filter) BPF_STMT(CODE, K)) 520 ((struct sock_filter) BPF_JUMP(CODE, K, JT, JF)) 648 /* A struct sock_filter is architecture independent. */ 651 compat_uptr_t filter; /* struct sock_filter * */ 656 struct sock_filter *filter; 1113 typedef int (*bpf_aux_classic_check_t)(struct sock_filter *filter, 1458 static inline bool bpf_needs_clear_a(const struct sock_filter *first) in bpf_needs_clear_a() 1477 static inline u16 bpf_anc_helper(const struct sock_filter *ftest) in bpf_anc_helper()
|
/linux/arch/um/kernel/skas/ |
H A D | stub_exe.c | 133 struct sock_filter filter[] = { in real_init()
|
/linux/kernel/ |
H A D | seccomp.c | 238 #define MAX_INSNS_PER_PATH ((1 << 18) / sizeof(struct sock_filter)) 278 static int seccomp_check_filter(struct sock_filter *filter, unsigned int flen) in seccomp_check_filter() 282 struct sock_filter *ftest = &filter[pc]; in seccomp_check_filter() 683 BUG_ON(INT_MAX / fprog->len < sizeof(struct sock_filter)); in seccomp_prepare_filter() 770 struct sock_filter *insn = &fprog->filter[pc]; in seccomp_is_const_allow()
|