Lines Matching refs:access
49 int r, access; in bpf_prog_allow_list_device() local
56 access = bpf_access_type(acc); in bpf_prog_allow_list_device()
57 if (access <= 0) in bpf_prog_allow_list_device()
65 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_device()
74 if (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD)) in bpf_prog_allow_list_device()
90 int r, access; in bpf_prog_allow_list_major() local
97 access = bpf_access_type(acc); in bpf_prog_allow_list_major()
98 if (access <= 0) in bpf_prog_allow_list_major()
106 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_major()
114 if (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD)) in bpf_prog_allow_list_major()
129 int r, access; in bpf_prog_allow_list_class() local
136 access = bpf_access_type(acc); in bpf_prog_allow_list_class()
137 if (access <= 0) in bpf_prog_allow_list_class()
145 BPF_ALU32_IMM(BPF_AND, BPF_REG_1, access), in bpf_prog_allow_list_class()
152 if (FLAGS_SET(access, BPF_DEVCG_ACC_READ | BPF_DEVCG_ACC_WRITE | BPF_DEVCG_ACC_MKNOD)) in bpf_prog_allow_list_class()