Home
last modified time | relevance | path

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

12

/openbmc/linux/tools/include/uapi/linux/
H A 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)
H A Dfilter.h31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
/openbmc/linux/include/uapi/linux/
H A 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)
H A 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 */
H A Dfilter.h31 struct sock_fprog { /* Required for SO_ATTACH_FILTER. */ struct
/openbmc/linux/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c394 struct sock_fprog prog = { in TEST()
502 struct sock_fprog prog = { in TEST()
1047 struct sock_fprog prog; in FIXTURE()
1158 struct sock_fprog allow; in FIXTURE()
1159 struct sock_fprog log; in FIXTURE()
1160 struct sock_fprog trace; in FIXTURE()
1161 struct sock_fprog error; in FIXTURE()
1162 struct sock_fprog trap; in FIXTURE()
1163 struct sock_fprog kill; in FIXTURE()
1658 struct sock_fprog prog; in FIXTURE()
[all …]
H A Dseccomp_benchmark.c128 struct sock_fprog bitmap_prog = { in main()
136 struct sock_fprog prog = { in main()
/openbmc/linux/arch/um/drivers/
H A Dvector_user.c756 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()
H A Dvector_kern.h131 struct sock_fprog *bpf;
/openbmc/google-misc/subprojects/ncsid/src/
H A Dncsi_sockio.cpp65 struct sock_fprog vlan_remove_bpf = {
/openbmc/linux/samples/seccomp/
H A Ddropper.c41 struct sock_fprog prog = { in install_filter()
H A Dbpf-fancy.c81 struct sock_fprog prog = { in main()
H A Dbpf-direct.c145 struct sock_fprog prog = { in install_filter()
H A Duser-trap.c96 struct sock_fprog prog = { in user_trap_syscall()
/openbmc/linux/samples/bpf/
H A Dtracex5_user.c27 struct sock_fprog prog = { in install_accept_all_seccomp()
/openbmc/linux/tools/testing/selftests/net/
H A Dpsock_lib.h65 struct sock_fprog bpf_prog; in pair_udp_setfilter()
H A Dtoeplitz.c299 struct sock_fprog prog = {}; in __set_filter()
328 struct sock_fprog prog = {}; in set_filter_null()
H A Dreuseport_bpf.c141 struct sock_fprog p = { in attach_cbpf()
348 struct sock_fprog cprog; in test_filter_no_reuseport()
H A Dreuseport_bpf_cpu.c85 struct sock_fprog p = { in attach_bpf()
H A Dpsock_fanout.c118 struct sock_fprog bpf_prog; in sock_fanout_set_cbpf()
H A Dcsum.c507 struct sock_fprog prog = {}; in __recv_prepare_packet_filter()
/openbmc/linux/tools/perf/bench/
H A Dsched-seccomp-notify.c59 struct sock_fprog prog = { in user_notif_syscall()
/openbmc/linux/Documentation/translations/zh_CN/userspace-api/
H A Dseccomp_filter.rst57 'prog' 参数是一个指向 sock_fprog 结构体的指针,其中包含了过滤器程序。如
/openbmc/linux/include/linux/
H A Dfilter.h892 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog,
896 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk);
898 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk);
1350 int copy_bpf_fprog_from_user(struct sock_fprog *dst, sockptr_t src, int len);
/openbmc/linux/drivers/net/ppp/
H A Dppp_generic.c577 static struct bpf_prog *get_filter(struct sock_fprog *uprog) in get_filter()
599 static struct bpf_prog *ppp_get_filter(struct sock_fprog __user *p) in ppp_get_filter()
601 struct sock_fprog uprog; in ppp_get_filter()
603 if (copy_from_user(&uprog, p, sizeof(struct sock_fprog))) in ppp_get_filter()
620 struct sock_fprog uprog; in compat_ppp_get_filter()

12