From b22fd92860700bb96fc76d305f5f69e432949813 Mon Sep 17 00:00:00 2001 From: Andrei Pavel Date: Wed, 21 May 2025 12:19:07 +0300 Subject: [PATCH] [#3831] Fix permissions for /etc/kea --- Makefile.am | 2 ++ src/bin/keactrl/Makefile.am | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 7e43dd8006..a81f4cc744 100644 --- a/Makefile.am +++ b/Makefile.am @@ -182,6 +182,8 @@ install-exec-hook: chmod 750 "$(DESTDIR)${localstatedir}/log/${PACKAGE_NAME}" mkdir -m 750 -p "$(DESTDIR)${runstatedir}/${PACKAGE_NAME}" chmod 750 "$(DESTDIR)${runstatedir}/${PACKAGE_NAME}" + mkdir -m 750 -p "$(DESTDIR)${sysconfdir}/${PACKAGE_NAME}" + chmod 750 "$(DESTDIR)${sysconfdir}/${PACKAGE_NAME}" EXTRA_DIST = tools/path_replacer.sh EXTRA_DIST += tools/mk_cfgrpt.sh diff --git a/src/bin/keactrl/Makefile.am b/src/bin/keactrl/Makefile.am index 296445e0b9..a977afffd0 100644 --- a/src/bin/keactrl/Makefile.am +++ b/src/bin/keactrl/Makefile.am @@ -59,7 +59,7 @@ if INSTALL_CONFIGURATIONS # To preserve any user modifications to the old version of the file, # this old file is backed up as keactrl.conf.bak. install-data-local: - $(mkinstalldirs) $(DESTDIR)/@sysconfdir@/@PACKAGE@ + $(mkinstalldirs) -m 750 $(DESTDIR)/@sysconfdir@/@PACKAGE@ for f in $(CONFIGFILES) ; do \ if test -f $(DESTDIR)$(sysconfdir)/@PACKAGE@/$$f && \ test $$f = "keactrl.conf"; then \ -- 2.47.2