/Linux-v4.19/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-v4.19/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 235 struct sock_fprog prog = { in TEST() 267 struct sock_fprog prog = { }; in TEST() 304 struct sock_fprog prog = { }; in TEST() 341 struct sock_fprog prog = { in TEST() 364 struct sock_fprog prog = { in TEST() 389 struct sock_fprog prog = { in TEST() 406 struct sock_fprog prog = { in TEST() 425 struct sock_fprog prog = { in TEST() 447 struct sock_fprog prog = { in TEST_SIGNAL() 469 struct sock_fprog prog = { in TEST_SIGNAL() [all …]
|
D | seccomp_benchmark.c | 65 struct sock_fprog prog = { in main()
|
/Linux-v4.19/samples/bpf/ |
D | tracex5_user.c | 20 struct sock_fprog prog = { in install_accept_all_seccomp()
|
/Linux-v4.19/include/net/ |
D | compat.h | 46 struct sock_fprog __user *get_compat_bpf_fprog(char __user *optval);
|
/Linux-v4.19/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()
|
/Linux-v4.19/net/ |
D | compat.c | 319 struct sock_fprog __user *get_compat_bpf_fprog(char __user *optval) in get_compat_bpf_fprog() 322 struct sock_fprog __user *kfprog = compat_alloc_user_space(sizeof(struct sock_fprog)); in get_compat_bpf_fprog() 324 struct sock_fprog f; in get_compat_bpf_fprog() 331 if (copy_to_user(kfprog, &f, sizeof(struct sock_fprog))) in get_compat_bpf_fprog() 341 struct sock_fprog __user *kfprog; in do_set_attach_filter() 348 sizeof(struct sock_fprog)); in do_set_attach_filter()
|
/Linux-v4.19/tools/testing/selftests/net/ |
D | psock_lib.h | 77 struct sock_fprog bpf_prog; in pair_udp_setfilter()
|
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 | 118 struct sock_fprog bpf_prog; in sock_fanout_set_cbpf()
|
/Linux-v4.19/arch/um/drivers/ |
D | vector_user.c | 561 struct sock_fprog bpf_prog = { in uml_vector_default_bpf() 583 fd, &bpf_prog, sizeof(struct sock_fprog)) < 0) { in uml_vector_default_bpf()
|
/Linux-v4.19/include/linux/ |
D | filter.h | 747 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog, 751 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk); 753 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk);
|
/Linux-v4.19/kernel/ |
D | seccomp.c | 368 static struct seccomp_filter *seccomp_prepare_filter(struct sock_fprog *fprog) in seccomp_prepare_filter() 416 struct sock_fprog fprog; in seccomp_prepare_user_filter()
|
/Linux-v4.19/fs/ |
D | compat_ioctl.c | 393 struct sock_fprog __user *u_fprog64 = compat_alloc_user_space(sizeof(struct sock_fprog)); in ppp_sock_fprog_ioctl_trans()
|
/Linux-v4.19/net/core/ |
D | sock.c | 885 if (optlen == sizeof(struct sock_fprog)) { in sock_setsockopt() 886 struct sock_fprog fprog; in sock_setsockopt() 911 if (optlen == sizeof(struct sock_fprog)) { in sock_setsockopt() 912 struct sock_fprog fprog; in sock_setsockopt()
|
D | filter.c | 1109 const struct sock_fprog *fprog) in bpf_prog_store_orig_filter() 1381 int bpf_prog_create_from_user(struct bpf_prog **pfp, struct sock_fprog *fprog, in bpf_prog_create_from_user() 1457 struct bpf_prog *__get_filter(struct sock_fprog *fprog, struct sock *sk) in __get_filter() 1503 int sk_attach_filter(struct sock_fprog *fprog, struct sock *sk) in sk_attach_filter() 1521 int sk_reuseport_attach_filter(struct sock_fprog *fprog, struct sock *sk) in sk_reuseport_attach_filter()
|
/Linux-v4.19/Documentation/userspace-api/ |
D | seccomp_filter.rst | 63 The 'prog' argument is a pointer to a struct sock_fprog which
|
/Linux-v4.19/tools/bpf/ |
D | bpf_dbg.c | 501 struct sock_fprog bpf = { in bpf_runnable()
|
/Linux-v4.19/Documentation/networking/ |
D | ppp_generic.txt | 413 option is selected. The argument should point to a sock_fprog
|
/Linux-v4.19/net/packet/ |
D | af_packet.c | 1536 struct sock_fprog fprog; in fanout_set_data_cbpf() 3977 optlen = sizeof(struct sock_fprog); in compat_packet_setsockopt()
|