HALF ECHO LEARN / REFERENCE COLLECTION

v262.2

src/nsresourced/meson.build

1,486 bytesGit mode 100644Download original fileLGPL-2.1-or-later

Git blob: 67dc34d339927855ba7913b412e2c3d3b5a93066

Lines 1–49 of 49

# SPDX-License-Identifier: LGPL-2.1-or-later
 
if conf.get('ENABLE_NSRESOURCED') != 1
        subdir_done()
endif
 
systemd_nsresourced_sources = files(
        'nsresourced-manager.c',
        'nsresourced.c',
)
systemd_nsresourced_export_sources = files(
        'userns-restrict.c',
        'userns-registry.c',
)
systemd_nsresourcework_sources = files(
        'nsresourcework.c'
)
test_userns_restrict_sources = files(
        'test-userns-restrict.c'
)
 
executables += [
        libexec_template + {
                'name' : 'systemd-nsresourced',
                'sources' : systemd_nsresourced_sources,
                'export' : systemd_nsresourced_export_sources,
                'dependencies' : [
                        libbpf_cflags,
                ],
                'bpf_programs': ['userns-restrict'],
        },
        libexec_template + {
                'name' : 'systemd-nsresourcework',
                'sources' : systemd_nsresourcework_sources,
                'import' : ['systemd-nsresourced'],
                'bpf_programs': ['userns-restrict'],
        },
        test_template + {
                'sources' : test_userns_restrict_sources,
                'conditions' : ['HAVE_VMLINUX_H'],
                'dependencies' : [libbpf_cflags],
                'import' : ['systemd-nsresourced'],
                'bpf_programs': ['userns-restrict'],
        },
]
 
install_data('io.systemd.namespace-resource.policy',
             install_dir : polkitpolicydir)