Debian Codegraph @

src/nsresourced/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 if conf.get('ENABLE_NSRESOURCED') != 1
4 subdir_done()
5 endif
6
7 systemd_nsresourced_sources = files(
8 'nsresourced-manager.c',
9 'nsresourced.c',
10 )
11 systemd_nsresourced_extract_sources = files(
12 'userns-restrict.c',
13 'userns-registry.c',
14 )
15 systemd_nsresourcework_sources = files(
16 'nsresourcework.c'
17 )
18 test_userns_restrict_sources = files(
19 'test-userns-restrict.c'
20 )
21
22 executables += [
23 libexec_template + {
24 'name' : 'systemd-nsresourced',
25 'sources' : systemd_nsresourced_sources,
26 'extract' : systemd_nsresourced_extract_sources,
27 'bpf_programs': ['userns-restrict'],
28 },
29 libexec_template + {
30 'name' : 'systemd-nsresourcework',
31 'sources' : systemd_nsresourcework_sources,
32 'objects' : ['systemd-nsresourced'],
33 'bpf_programs': ['userns-restrict'],
34 },
35 test_template + {
36 'sources' : test_userns_restrict_sources,
37 'conditions' : ['HAVE_VMLINUX_H'],
38 'objects' : ['systemd-nsresourced'],
39 'bpf_programs': ['userns-restrict'],
40 },
41 ]
42
43 install_data('io.systemd.namespace-resource.policy',
44 install_dir : polkitpolicydir)