Searched refs:set_bpf_stmt (Results 1 – 2 of 2) sorted by relevance
/external/minijail/ |
D | bpf.c | 18 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, arch_nr); in bpf_validate_arch() 30 set_bpf_stmt(curr_block++, BPF_RET + BPF_K, SECCOMP_RET_ALLOW); in bpf_allow_syscall() 47 set_bpf_stmt(filter, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg() 54 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, LO_ARG(argidx)); in bpf_load_arg() 55 set_bpf_stmt(curr_block++, BPF_ST, 0); /* lo -> M[0] */ in bpf_load_arg() 56 set_bpf_stmt(curr_block++, BPF_LD + BPF_W + BPF_ABS, HI_ARG(argidx)); in bpf_load_arg() 57 set_bpf_stmt(curr_block++, BPF_ST, 1); /* hi -> M[1] */ in bpf_load_arg() 86 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jeq64() 133 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jgt64() 157 set_bpf_stmt(curr_block++, BPF_LD + BPF_MEM, 0); /* swap in |lo| */ in bpf_comp_jge64() [all …]
|
D | bpf.h | 151 #define set_bpf_stmt(_block, _code, _k) \ macro 166 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_KILL) 169 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_TRAP) 172 set_bpf_stmt((_block), BPF_RET+BPF_K, \ 176 set_bpf_stmt((_block), BPF_RET+BPF_K, SECCOMP_RET_ALLOW) 179 set_bpf_stmt((_filter), BPF_LD+BPF_W+BPF_ABS, syscall_nr)
|