/linux/tools/include/uapi/linux/ ! |
H A D | if_tun.h | 45 #define TUNATTACHFILTER _IOW('T', 213, struct sock_fprog) 46 #define TUNDETACHFILTER _IOW('T', 214, struct sock_fprog) 51 #define TUNGETFILTER _IOR('T', 219, struct sock_fprog)
|
H A D | filter.h | 31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
|
/linux/include/uapi/linux/ ! |
H A D | if_tun.h | 45 #define TUNATTACHFILTER _IOW('T', 213, struct sock_fprog) 46 #define TUNDETACHFILTER _IOW('T', 214, struct sock_fprog) 51 #define TUNGETFILTER _IOR('T', 219, struct sock_fprog)
|
H A D | ppp-ioctl.h | 102 #define PPPIOCSPASS _IOW('t', 71, struct sock_fprog) /* set pass filter */ 103 #define PPPIOCSACTIVE _IOW('t', 70, struct sock_fprog) /* set active filt */
|
H A D | filter.h | 31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
|
/linux/tools/testing/selftests/seccomp/ ! |
H A D | seccomp_bpf.c | 407 struct sock_fprog prog = { in TEST() 441 struct sock_fprog prog = { }; in TEST() 478 struct sock_fprog prog = { }; in TEST() 515 struct sock_fprog prog = { in TEST() 538 struct sock_fprog prog = { in TEST() 563 struct sock_fprog prog = { in TEST() 580 struct sock_fprog prog = { in TEST() 599 struct sock_fprog prog = { in TEST() 621 struct sock_fprog prog = { in TEST_SIGNAL() 643 struct sock_fprog prog = { in TEST_SIGNAL() [all …]
|
H A D | seccomp_benchmark.c | 172 struct sock_fprog bitmap_prog = { in main() 180 struct sock_fprog prog = { in main()
|
/linux/arch/um/drivers/ ! |
H A D | vector_user.c | 839 struct sock_fprog *prog = bpf; in uml_vector_attach_bpf() 841 int err = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, bpf, sizeof(struct sock_fprog)); in uml_vector_attach_bpf() 850 struct sock_fprog *prog = bpf; in uml_vector_detach_bpf() 852 int err = setsockopt(fd, SOL_SOCKET, SO_DETACH_FILTER, bpf, sizeof(struct sock_fprog)); in uml_vector_detach_bpf() 862 struct sock_fprog *bpf_prog; in uml_vector_default_bpf() 864 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_default_bpf() 899 struct sock_fprog *bpf_prog; in uml_vector_user_bpf() 910 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_user_bpf()
|
H A D | vector_kern.h | 132 struct sock_fprog *bpf;
|
/linux/samples/seccomp/ ! |
H A D | dropper.c | 41 struct sock_fprog prog = { in install_filter()
|
H A D | bpf-fancy.c | 81 struct sock_fprog prog = { in main()
|
H A D | bpf-direct.c | 145 struct sock_fprog prog = { in install_filter()
|
/linux/samples/bpf/ ! |
H A D | tracex5_user.c | 27 struct sock_fprog prog = { in install_accept_all_seccomp()
|
/linux/tools/perf/bench/ ! |
H A D | sched-seccomp-notify.c | 59 struct sock_fprog prog = { in user_notif_syscall()
|
/linux/tools/testing/selftests/net/ ! |
H A D | toeplitz.c | 299 struct sock_fprog prog = {}; in __set_filter() 328 struct sock_fprog prog = {}; in set_filter_null()
|
H A D | skf_net_off.c | 94 struct sock_fprog filter = { in sk_set_filter()
|
H A D | reuseport_bpf.c | 141 struct sock_fprog p = { in attach_cbpf() 348 struct sock_fprog cprog; in test_filter_no_reuseport()
|
H A D | reuseport_bpf_cpu.c | 85 struct sock_fprog p = { in attach_bpf()
|
H A D | psock_fanout.c | 146 struct sock_fprog bpf_prog; in sock_fanout_set_cbpf()
|
/linux/arch/um/kernel/skas/ ! |
H A D | stub_exe.c | 195 struct sock_fprog prog = { in real_init()
|
/linux/Documentation/translations/zh_CN/userspace-api/ ! |
H A D | seccomp_filter.rst | 57 'prog' 参数是一个指向 sock_fprog 结构体的指针,其中包含了过滤器程序。如
|
/linux/arch/um/os-Linux/ ! |
H A D | start_up.c | 262 static struct sock_fprog prog = { in seccomp_helper()
|
/linux/include/linux/ ! |
H A D | filter.h | 1117 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog, 1121 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); 1123 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk); 1588 int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len);
|
/linux/drivers/net/ppp/ ! |
H A D | ppp_generic.c | 583 static struct bpf_prog *get_filter(struct sock_fprog *uprog) in get_filter() 605 static struct bpf_prog *ppp_get_filter(struct sock_fprog __user *p) in ppp_get_filter() 607 struct sock_fprog uprog; in ppp_get_filter() 609 if (copy_from_user(&uprog, p, sizeof(struct sock_fprog))) in ppp_get_filter() 626 struct sock_fprog uprog; in compat_ppp_get_filter()
|
/linux/tools/testing/selftests/net/lib/ ! |
H A D | csum.c | 507 struct sock_fprog prog = {}; in __recv_prepare_packet_filter()
|