]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[#3993] Install empty dirs with 750 perms
authorAndrei Pavel <andrei@isc.org>
Wed, 13 May 2026 12:56:20 +0000 (15:56 +0300)
committerAndrei Pavel <andrei@isc.org>
Fri, 22 May 2026 12:52:14 +0000 (15:52 +0300)
meson.build

index 3fad273913127e3a2387b5121f7a1461fb7d6ae9..2a25c30e90fd802325dafef238a235f491adc245 100644 (file)
@@ -1137,18 +1137,18 @@ top_docs = [
 ]
 install_data(top_docs, install_dir: DATADIR / 'doc/kea')
 
-install_emptydir(LOGDIR)
-install_emptydir(RUNSTATEDIR)
-install_emptydir(SHAREDSTATEDIR)
+install_emptydir(LOGDIR, install_mode: 'rwxr-x---')
+install_emptydir(RUNSTATEDIR, install_mode: 'rwxr-x---')
+install_emptydir(SHAREDSTATEDIR, install_mode: 'rwxr-x---')
 
 # Meson is annoying with its opinionated alteration of certain paths based on whether prefix is default or not.
 # So we revert what it does..
 # In case prefix is default, install to hardcoded path.
 if PREFIX == '/usr/local'
-    install_emptydir('/usr/local/lib/kea')
-    install_emptydir('/usr/local/var/lib/kea')
-    install_emptydir('/usr/local/var/log/kea')
-    install_emptydir('/usr/local/var/run/kea')
+    install_emptydir('/usr/local/lib/kea', install_mode: 'rwxr-x---')
+    install_emptydir('/usr/local/var/lib/kea', install_mode: 'rwxr-x---')
+    install_emptydir('/usr/local/var/log/kea', install_mode: 'rwxr-x---')
+    install_emptydir('/usr/local/var/run/kea', install_mode: 'rwxr-x---')
 endif
 
 # Print the setup report.