Lines Matching refs:obj
33 static struct restrict_fs_bpf *restrict_fs_bpf_free(struct restrict_fs_bpf *obj) { in restrict_fs_bpf_free() argument
35 (void) restrict_fs_bpf__destroy(obj); in restrict_fs_bpf_free()
56 _cleanup_(restrict_fs_bpf_freep) struct restrict_fs_bpf *obj = NULL; in prepare_restrict_fs_bpf() local
62 obj = restrict_fs_bpf__open(); in prepare_restrict_fs_bpf()
63 if (!obj) in prepare_restrict_fs_bpf()
67 r = sym_bpf_map__resize(obj->maps.cgroup_hash, CGROUP_HASH_SIZE_MAX); in prepare_restrict_fs_bpf()
71 sym_bpf_map__name(obj->maps.cgroup_hash)); in prepare_restrict_fs_bpf()
78 r = sym_bpf_map__set_inner_map_fd(obj->maps.cgroup_hash, inner_map_fd); in prepare_restrict_fs_bpf()
83 r = restrict_fs_bpf__load(obj); in prepare_restrict_fs_bpf()
88 *ret_obj = TAKE_PTR(obj); in prepare_restrict_fs_bpf()
129 _cleanup_(restrict_fs_bpf_freep) struct restrict_fs_bpf *obj = NULL; in lsm_bpf_supported() local
168 r = prepare_restrict_fs_bpf(&obj); in lsm_bpf_supported()
172 if (!bpf_can_link_lsm_program(obj->progs.restrict_filesystems)) { in lsm_bpf_supported()
182 _cleanup_(restrict_fs_bpf_freep) struct restrict_fs_bpf *obj = NULL; in lsm_bpf_setup() local
188 r = prepare_restrict_fs_bpf(&obj); in lsm_bpf_setup()
192 link = sym_bpf_program__attach_lsm(obj->progs.restrict_filesystems); in lsm_bpf_setup()
196 sym_bpf_program__name(obj->progs.restrict_filesystems)); in lsm_bpf_setup()
200 obj->links.restrict_filesystems = TAKE_PTR(link); in lsm_bpf_setup()
201 m->restrict_fs = TAKE_PTR(obj); in lsm_bpf_setup()