]> git.99rst.org Git - openwrt-packages.git/commitdiff
syslog-ng: install the configuration with INSTALL_CONF
authorJosef Schlehofer <redacted>
Tue, 18 Aug 2026 08:38:10 +0000 (10:38 +0200)
committerJosef Schlehofer <redacted>
Tue, 18 Aug 2026 13:00:51 +0000 (15:00 +0200)
/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 <redacted>
admin/syslog-ng/Makefile

index 6e1440015f152fd14fababe1fe937805f719103e..9bd12cc537f23fc88efbb38ddb2abae67a911251 100644 (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
git clone https://git.99rst.org/PROJECT