diff options
Diffstat (limited to 'src/creds')
-rw-r--r-- | src/creds/meson.build | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/creds/meson.build b/src/creds/meson.build index 905c349635..85572568f6 100644 --- a/src/creds/meson.build +++ b/src/creds/meson.build @@ -15,9 +15,11 @@ executables += [ # Protecting files from the distro in /usr doesn't make sense since they can be trivially accessed otherwise, # so don't restrict the access mode in /usr. That doesn't apply to /etc, so we do restrict the access mode # there. -meson.add_install_script('sh', '-c', mkdir_p.format(credstoredir)) +install_emptydir(credstoredir) if install_sysconfdir # Keep in sync with tmpfiles.d/credstore.conf - meson.add_install_script('sh', '-c', mkdir_p_mode.format(sysconfdir / 'credstore', '0700')) - meson.add_install_script('sh', '-c', mkdir_p_mode.format(sysconfdir / 'credstore.encrypted', '0700')) + install_emptydir(sysconfdir / 'credstore', + install_mode : 'rwx------') + install_emptydir(sysconfdir / 'credstore.encrypted', + install_mode : 'rwx------') endif |