Debian Codegraph @

src/creds/meson.build

raw
1 # SPDX-License-Identifier: LGPL-2.1-or-later
2
3 if conf.get('HAVE_LIBMOUNT') != 1
4 subdir_done()
5 endif
6
7 executables += [
8 executable_template + {
9 'name' : 'systemd-creds',
10 'public' : true,
11 'sources' : files('creds.c'),
12 'dependencies' : [
13 libmount_cflags,
14 libopenssl_cflags,
15 ],
16 },
17 ]
18
19 # Protecting files from the distro in /usr doesn't make sense since they can be trivially accessed otherwise,
20 # so don't restrict the access mode in /usr. That doesn't apply to /etc, so we do restrict the access mode
21 # there.
22 install_emptydir(credstoredir)
23 if install_sysconfdir
24 # Keep in sync with tmpfiles.d/credstore.conf
25 install_emptydir(sysconfdir / 'credstore',
26 install_mode : 'rwx------')
27 install_emptydir(sysconfdir / 'credstore.encrypted',
28 install_mode : 'rwx------')
29 endif
30
31 install_data('io.systemd.credentials.policy',
32 install_dir : polkitpolicydir)