Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 6 of 6) sorted by relevance

/systemd-251/src/core/
Dbpf-socket-bind.c17 static struct socket_bind_bpf *socket_bind_bpf_free(struct socket_bind_bpf *obj) { in socket_bind_bpf_free() argument
19 (void) socket_bind_bpf__destroy(obj); in socket_bind_bpf_free()
57 _cleanup_(socket_bind_bpf_freep) struct socket_bind_bpf *obj = NULL; in prepare_socket_bind_bpf() local
77 obj = socket_bind_bpf__open(); in prepare_socket_bind_bpf()
78 if (!obj) in prepare_socket_bind_bpf()
81 if (sym_bpf_map__resize(obj->maps.sd_bind_allow, MAX(allow_count, 1u)) != 0) in prepare_socket_bind_bpf()
83 … "Failed to resize BPF map '%s': %m", sym_bpf_map__name(obj->maps.sd_bind_allow)); in prepare_socket_bind_bpf()
85 if (sym_bpf_map__resize(obj->maps.sd_bind_deny, MAX(deny_count, 1u)) != 0) in prepare_socket_bind_bpf()
87 … "Failed to resize BPF map '%s': %m", sym_bpf_map__name(obj->maps.sd_bind_deny)); in prepare_socket_bind_bpf()
89 if (socket_bind_bpf__load(obj) != 0) in prepare_socket_bind_bpf()
[all …]
Drestrict-ifaces.c15 static struct restrict_ifaces_bpf *restrict_ifaces_bpf_free(struct restrict_ifaces_bpf *obj) { in restrict_ifaces_bpf_free() argument
16 restrict_ifaces_bpf__destroy(obj); in restrict_ifaces_bpf_free()
28 _cleanup_(restrict_ifaces_bpf_freep) struct restrict_ifaces_bpf *obj = NULL; in prepare_restrict_ifaces_bpf() local
35 obj = restrict_ifaces_bpf__open(); in prepare_restrict_ifaces_bpf()
36 if (!obj) in prepare_restrict_ifaces_bpf()
39 … r = sym_bpf_map__resize(obj->maps.sd_restrictif, MAX(set_size(restrict_network_interfaces), 1u)); in prepare_restrict_ifaces_bpf()
43 sym_bpf_map__name(obj->maps.sd_restrictif)); in prepare_restrict_ifaces_bpf()
45 obj->rodata->is_allow_list = is_allow_list; in prepare_restrict_ifaces_bpf()
47 r = restrict_ifaces_bpf__load(obj); in prepare_restrict_ifaces_bpf()
51 map_fd = sym_bpf_map__fd(obj->maps.sd_restrictif); in prepare_restrict_ifaces_bpf()
[all …]
Dbpf-lsm.c33 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()
[all …]
Dsmack-setup.c92 … _cleanup_free_ char *buf = NULL, *sbj = NULL, *obj = NULL, *acc1 = NULL, *acc2 = NULL; in write_access2_rules() local
106 if (sscanf(buf, "%ms %ms %ms %ms", &sbj, &obj, &acc1, &acc2) < 3) { in write_access2_rules()
/systemd-251/src/test/
Dtest-proc-cmdline.c14 static int obj; variable
18 assert_se(data == &obj); in parse_item()
25 assert_se(proc_cmdline_parse(parse_item, &obj, PROC_CMDLINE_STRIP_RD_PREFIX) >= 0); in TEST()
/systemd-251/src/shared/
Dbarrier.h39 int barrier_create(Barrier *obj);