syslog-ng: install the configuration with INSTALL_CONF

/etc/syslog-ng.conf is installed with INSTALL_DATA, so it ends up
world readable at 0644. The file holds the credentials of every
destination that needs them, so install it with INSTALL_CONF and
0600 instead, as the rest of the tree does for configuration under
/etc.

Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
This commit is contained in:
Josef Schlehofer committed 2026-08-18 15:00:51 +02:00
1 parent 7bc659273b
commit 397c29176b
1 file changed
+2 -2
+2 -2
View File
@@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME:=syslog-ng
PKG_VERSION:=4.12.0
PKG_RELEASE:=2
PKG_RELEASE:=3
PKG_MAINTAINER:=Josef Schlehofer <pepe.schlehofer@gmail.com>
PKG_LICENSE:=LGPL-2.1-or-later GPL-2.0-or-later
@@ -125,7 +125,7 @@ define Package/syslog-ng/install
$(INSTALL_DIR) $(1)/etc/init.d
$(INSTALL_BIN) ./files/syslog-ng.init $(1)/etc/init.d/syslog-ng
$(INSTALL_DIR) $(1)/etc/syslog-ng.d
$(INSTALL_DATA) ./files/syslog-ng.conf $(1)/etc
$(INSTALL_CONF) ./files/syslog-ng.conf $(1)/etc/syslog-ng.conf
touch $(1)/etc/syslog-ng.d/.keep
$(INSTALL_DIR) $(1)/usr/libexec