/linux-6.3-rc2/samples/seccomp/ |
A D | bpf-helper.h | 187 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 D | bpf-direct.c | 115 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 D | dropper.c | 31 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 D | user-trap.c | 89 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 D | test_bpf.c | 3661 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 D | seccomp_bpf.c | 667 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 D | seccomp_benchmark.c | 125 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 D | filter.h | 48 #ifndef BPF_STMT 49 #define BPF_STMT(code, k) { (unsigned short)(code), 0, 0, k } macro
|
/linux-6.3-rc2/include/uapi/linux/ |
A D | filter.h | 48 #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 D | toeplitz.c | 290 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 D | csum.c | 496 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 D | gro.c | 124 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 D | psock_fanout.c | 115 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 D | tracex5_user.c | 25 BPF_STMT(BPF_RET+BPF_K, SECCOMP_RET_ALLOW), in install_accept_all_seccomp()
|
/linux-6.3-rc2/Documentation/networking/ |
A D | cdc_mbim.rst | 251 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 D | filter.h | 409 ((struct sock_filter) BPF_STMT(CODE, K))
|