From 13b18427d6dc4c94140f76b3dd444395aae16c13 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Tue, 15 Sep 2020 11:45:21 +0100 Subject: [PATCH] install: Create DBDIR with mode 0750 by default It shouldn't be 0755 as we might not want everyone to read DHCP leases. --- Makefile.inc | 1 + src/Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile.inc b/Makefile.inc index ec5361a6..18b2824d 100644 --- a/Makefile.inc +++ b/Makefile.inc @@ -6,6 +6,7 @@ BINMODE?= 0555 NONBINMODE?= 0444 MANMODE?= ${NONBINMODE} CONFMODE?= 0644 +DBMODE?= 0750 CC?= cc ECHO?= echo diff --git a/src/Makefile b/src/Makefile index f1ae617d..ed038728 100644 --- a/src/Makefile +++ b/src/Makefile @@ -82,7 +82,7 @@ _embeddedinstall: ${DHCPCD_DEF} _proginstall: ${PROG} ${INSTALL} -d ${DESTDIR}${SBINDIR} ${INSTALL} -m ${BINMODE} ${PROG} ${DESTDIR}${SBINDIR} - ${INSTALL} -d ${DESTDIR}${DBDIR} + ${INSTALL} -m ${DBMODE} -d ${DESTDIR}${DBDIR} proginstall: _proginstall ${EMBEDDEDINSTALL} for x in ${SUBDIRS}; do cd $$x; ${MAKE} $@ || exit $$?; cd ..; done -- 2.47.2