Home
last modified time | relevance | path

Searched refs:sock_fprog (Results 1 – 25 of 35) sorted by relevance

12

/linux-6.12.1/tools/include/uapi/linux/
Dif_tun.h45 #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)
Dfilter.h31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
/linux-6.12.1/include/uapi/linux/
Dif_tun.h45 #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)
Dppp-ioctl.h102 #define PPPIOCSPASS _IOW('t', 71, struct sock_fprog) /* set pass filter */
103 #define PPPIOCSACTIVE _IOW('t', 70, struct sock_fprog) /* set active filt */
Dfilter.h31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
/linux-6.12.1/tools/testing/selftests/seccomp/
Dseccomp_bpf.c396 struct sock_fprog prog = { in TEST()
430 struct sock_fprog prog = { }; in TEST()
467 struct sock_fprog prog = { }; in TEST()
504 struct sock_fprog prog = { in TEST()
527 struct sock_fprog prog = { in TEST()
552 struct sock_fprog prog = { in TEST()
569 struct sock_fprog prog = { in TEST()
588 struct sock_fprog prog = { in TEST()
610 struct sock_fprog prog = { in TEST_SIGNAL()
632 struct sock_fprog prog = { in TEST_SIGNAL()
[all …]
Dseccomp_benchmark.c172 struct sock_fprog bitmap_prog = { in main()
180 struct sock_fprog prog = { in main()
/linux-6.12.1/arch/um/drivers/
Dvector_user.c839 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()
Dvector_kern.h132 struct sock_fprog *bpf;
/linux-6.12.1/samples/seccomp/
Ddropper.c41 struct sock_fprog prog = { in install_filter()
Dbpf-fancy.c81 struct sock_fprog prog = { in main()
Dbpf-direct.c145 struct sock_fprog prog = { in install_filter()
Duser-trap.c100 struct sock_fprog prog = { in user_trap_syscall()
/linux-6.12.1/samples/bpf/
Dtracex5_user.c27 struct sock_fprog prog = { in install_accept_all_seccomp()
/linux-6.12.1/tools/testing/selftests/net/
Dpsock_lib.h65 struct sock_fprog bpf_prog; in pair_udp_setfilter()
Dtoeplitz.c299 struct sock_fprog prog = {}; in __set_filter()
328 struct sock_fprog prog = {}; in set_filter_null()
Dreuseport_bpf.c141 struct sock_fprog p = { in attach_cbpf()
348 struct sock_fprog cprog; in test_filter_no_reuseport()
Dreuseport_bpf_cpu.c85 struct sock_fprog p = { in attach_bpf()
Dpsock_fanout.c118 struct sock_fprog bpf_prog; in sock_fanout_set_cbpf()
/linux-6.12.1/tools/perf/bench/
Dsched-seccomp-notify.c59 struct sock_fprog prog = { in user_notif_syscall()
/linux-6.12.1/Documentation/translations/zh_CN/userspace-api/
Dseccomp_filter.rst57 'prog' 参数是一个指向 sock_fprog 结构体的指针,其中包含了过滤器程序。如
/linux-6.12.1/include/linux/
Dfilter.h1090 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog,
1094 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk);
1096 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk);
1553 int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len);
/linux-6.12.1/drivers/net/ppp/
Dppp_generic.c579 static struct bpf_prog *get_filter(struct sock_fprog *uprog) in get_filter()
601 static struct bpf_prog *ppp_get_filter(struct sock_fprog __user *p) in ppp_get_filter()
603 struct sock_fprog uprog; in ppp_get_filter()
605 if (copy_from_user(&uprog, p, sizeof(struct sock_fprog))) in ppp_get_filter()
622 struct sock_fprog uprog; in compat_ppp_get_filter()
/linux-6.12.1/kernel/
Dseccomp.c661 static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog) in seccomp_prepare_filter()
716 struct sock_fprog fprog; in seccomp_prepare_user_filter()
/linux-6.12.1/tools/testing/selftests/net/lib/
Dcsum.c507 struct sock_fprog prog = {}; in __recv_prepare_packet_filter()

12