Home
last modified time | relevance | path

Searched refs:BPF_STMT (Results 1 – 16 of 16) sorted by relevance

/linux-6.3-rc2/samples/seccomp/
A Dbpf-helper.h187 BPF_STMT(BPF_LD+BPF_MEM, 1), \
189 BPF_STMT(BPF_LD+BPF_MEM, 1)
194 BPF_STMT(BPF_LD+BPF_MEM, 0), \
197 BPF_STMT(BPF_LD+BPF_MEM, 1), \
199 BPF_STMT(BPF_LD+BPF_MEM, 1)
204 BPF_STMT(BPF_LD+BPF_MEM, 0), \
209 BPF_STMT(BPF_LD+BPF_MEM, 1)
221 BPF_STMT(BPF_LD+BPF_MEM, 1)
233 BPF_STMT(BPF_LD+BPF_MEM, 1)
245 BPF_STMT(BPF_LD+BPF_MEM, 1)
[all …]
A Dbpf-direct.c115 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_nr), in install_filter()
118 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
121 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
124 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
126 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
131 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
133 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL), in install_filter()
136 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, syscall_arg(0)), in install_filter()
141 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
142 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_TRAP), in install_filter()
[all …]
A Ddropper.c31 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
34 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in install_filter()
37 BPF_STMT(BPF_RET+BPF_K, in install_filter()
39 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_filter()
46 struct sock_filter kill = BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_KILL); in install_filter()
A Duser-trap.c89 BPF_STMT(BPF_LD+BPF_W+BPF_ABS, in user_trap_syscall()
92 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_USER_NOTIF), in user_trap_syscall()
93 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in user_trap_syscall()
/linux-6.3-rc2/lib/
A Dtest_bpf.c3661 BPF_STMT(BPF_ST, 1),
3668 BPF_STMT(BPF_ST, 5),
4691 BPF_STMT(BPF_STX, 0),
4696 BPF_STMT(BPF_STX, 1),
4701 BPF_STMT(BPF_STX, 2),
4706 BPF_STMT(BPF_STX, 3),
4711 BPF_STMT(BPF_STX, 4),
4716 BPF_STMT(BPF_STX, 5),
4721 BPF_STMT(BPF_STX, 6),
4726 BPF_STMT(BPF_STX, 7),
[all …]
/linux-6.3-rc2/tools/testing/selftests/seccomp/
A Dseccomp_bpf.c667 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
695 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
735 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in TEST_SIGNAL()
808 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group()
820 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in kill_thread_or_group()
823 BPF_STMT(BPF_RET|BPF_K, kill), in kill_thread_or_group()
1053 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1172 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1179 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
1186 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, in FIXTURE_SETUP()
[all …]
A Dseccomp_benchmark.c125 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, nr)), in main()
126 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in main()
133 BPF_STMT(BPF_LD|BPF_W|BPF_ABS, offsetof(struct seccomp_data, args[0])), in main()
134 BPF_STMT(BPF_RET|BPF_K, SECCOMP_RET_ALLOW), in main()
/linux-6.3-rc2/tools/include/uapi/linux/
A Dfilter.h48 #ifndef BPF_STMT
49 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/linux-6.3-rc2/include/uapi/linux/
A Dfilter.h48 #ifndef BPF_STMT
49 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
/linux-6.3-rc2/tools/testing/selftests/net/
A Dtoeplitz.c290 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, SKF_AD_OFF + SKF_AD_PKTTYPE), in __set_filter()
292 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, off_proto), in __set_filter()
294 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __set_filter()
296 BPF_STMT(BPF_RET + BPF_K, 0), in __set_filter()
297 BPF_STMT(BPF_RET + BPF_K, 0xFFFF), in __set_filter()
326 BPF_STMT(BPF_RET + BPF_K, 0), in set_filter_null()
A Dcsum.c496 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, SKF_AD_OFF + SKF_AD_PKTTYPE), in __recv_prepare_packet_filter()
498 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, off_nexthdr), in __recv_prepare_packet_filter()
500 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, off_dport), in __recv_prepare_packet_filter()
502 BPF_STMT(BPF_RET + BPF_K, 0), in __recv_prepare_packet_filter()
503 BPF_STMT(BPF_RET + BPF_K, 0xFFFF), in __recv_prepare_packet_filter()
A Dgro.c124 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, ethproto_off), in setup_sock_filter()
126 BPF_STMT(BPF_LD + BPF_B + BPF_ABS, ipproto_off), in setup_sock_filter()
128 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, dport_off), in setup_sock_filter()
130 BPF_STMT(BPF_LD + BPF_H + BPF_ABS, dport_off + optlen), in setup_sock_filter()
132 BPF_STMT(BPF_RET + BPF_K, 0xFFFFFFFF), in setup_sock_filter()
133 BPF_STMT(BPF_RET + BPF_K, 0), in setup_sock_filter()
A Dpsock_fanout.c115 BPF_STMT(BPF_LD | BPF_B | BPF_ABS, 80), /* ldb [80] */ in sock_fanout_set_cbpf()
116 BPF_STMT(BPF_RET | BPF_A, 0), /* ret A */ in sock_fanout_set_cbpf()
/linux-6.3-rc2/samples/bpf/
A Dtracex5_user.c25 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_accept_all_seccomp()
/linux-6.3-rc2/Documentation/networking/
A Dcdc_mbim.rst251 BPF_STMT(BPF_LD|BPF_B|BPF_ABS, SKF_AD_OFF + SKF_AD_VLAN_TAG_PRESENT),
255 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, SKF_AD_OFF + SKF_AD_VLAN_TAG),
260 BPF_STMT(BPF_LD|BPF_H|BPF_ABS, 2 * ETH_ALEN),
263 BPF_STMT(BPF_RET|BPF_K, (u_int)-1), /* accept */
264 BPF_STMT(BPF_RET|BPF_K, 0), /* ignore */
/linux-6.3-rc2/include/linux/
A Dfilter.h409 ((struct sock_filter) BPF_STMT(CODE, K))

Completed in 76 milliseconds