| /Linux-v5.15/tools/include/uapi/linux/ |
| 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)
|
| D | filter.h | 31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
|
| /Linux-v5.15/include/uapi/linux/ |
| 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)
|
| 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 */
|
| D | filter.h | 31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
|
| /Linux-v5.15/tools/testing/selftests/seccomp/ |
| D | seccomp_bpf.c | 383 struct sock_fprog prog = { in TEST() 415 struct sock_fprog prog = { }; in TEST() 452 struct sock_fprog prog = { }; in TEST() 489 struct sock_fprog prog = { in TEST() 512 struct sock_fprog prog = { in TEST() 537 struct sock_fprog prog = { in TEST() 554 struct sock_fprog prog = { in TEST() 573 struct sock_fprog prog = { in TEST() 595 struct sock_fprog prog = { in TEST_SIGNAL() 617 struct sock_fprog prog = { in TEST_SIGNAL() [all …]
|
| D | seccomp_benchmark.c | 128 struct sock_fprog bitmap_prog = { in main() 136 struct sock_fprog prog = { in main()
|
| /Linux-v5.15/arch/um/drivers/ |
| D | vector_user.c | 756 struct sock_fprog *prog = bpf; in uml_vector_attach_bpf() 758 int err = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, bpf, sizeof(struct sock_fprog)); in uml_vector_attach_bpf() 767 struct sock_fprog *prog = bpf; in uml_vector_detach_bpf() 769 int err = setsockopt(fd, SOL_SOCKET, SO_DETACH_FILTER, bpf, sizeof(struct sock_fprog)); in uml_vector_detach_bpf() 779 struct sock_fprog *bpf_prog; in uml_vector_default_bpf() 781 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_default_bpf() 816 struct sock_fprog *bpf_prog; in uml_vector_user_bpf() 827 bpf_prog = uml_kmalloc(sizeof(struct sock_fprog), UM_GFP_KERNEL); in uml_vector_user_bpf()
|
| D | vector_kern.h | 130 struct sock_fprog *bpf;
|
| /Linux-v5.15/samples/seccomp/ |
| D | dropper.c | 41 struct sock_fprog prog = { in install_filter()
|
| D | bpf-fancy.c | 81 struct sock_fprog prog = { in main()
|
| D | bpf-direct.c | 145 struct sock_fprog prog = { in install_filter()
|
| D | user-trap.c | 96 struct sock_fprog prog = { in user_trap_syscall()
|
| /Linux-v5.15/samples/bpf/ |
| D | tracex5_user.c | 27 struct sock_fprog prog = { in install_accept_all_seccomp()
|
| /Linux-v5.15/tools/testing/selftests/net/ |
| D | psock_lib.h | 63 struct sock_fprog bpf_prog; in pair_udp_setfilter()
|
| D | toeplitz.c | 295 struct sock_fprog prog = {}; in __set_filter() 324 struct sock_fprog prog = {}; in set_filter_null()
|
| D | reuseport_bpf.c | 143 struct sock_fprog p = { in attach_cbpf() 350 struct sock_fprog cprog; in test_filter_no_reuseport()
|
| D | reuseport_bpf_cpu.c | 85 struct sock_fprog p = { in attach_bpf()
|
| D | psock_fanout.c | 117 struct sock_fprog bpf_prog; in sock_fanout_set_cbpf()
|
| D | gro.c | 135 struct sock_fprog bpf = { in setup_sock_filter()
|
| /Linux-v5.15/include/linux/ |
| D | filter.h | 935 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog, 939 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); 941 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk); 1359 int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len);
|
| /Linux-v5.15/drivers/net/ppp/ |
| D | ppp_generic.c | 556 static struct bpf_prog *get_filter(struct sock_fprog *uprog) in get_filter() 578 static struct bpf_prog *ppp_get_filter(struct sock_fprog __user *p) in ppp_get_filter() 580 struct sock_fprog uprog; in ppp_get_filter() 582 if (copy_from_user(&uprog, p, sizeof(struct sock_fprog))) in ppp_get_filter() 599 struct sock_fprog uprog; in compat_ppp_get_filter()
|
| /Linux-v5.15/kernel/ |
| D | seccomp.c | 634 static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog) in seccomp_prepare_filter() 689 struct sock_fprog fprog; in seccomp_prepare_user_filter()
|
| /Linux-v5.15/tools/bpf/ |
| D | bpf_dbg.c | 501 struct sock_fprog bpf = { in bpf_runnable()
|
| /Linux-v5.15/Documentation/userspace-api/ |
| D | seccomp_filter.rst | 63 The 'prog' argument is a pointer to a struct sock_fprog which
|