Skip to content

Commit 340f08f

Browse files
BKPepeecsv
authored andcommitted
alfred: install configs with INSTALL_CONF (0600)
Use INSTALL_CONF instead of INSTALL_DATA to install configuration files under /etc with correct permissions. This improves security by ensuring config files are not world-readable. INSTALL_DATA sets mode 0644, while INSTALL_CONF sets mode 0600. Signed-off-by: Josef Schlehofer <[email protected]> Signed-off-by: Sven Eckelmann <[email protected]>
1 parent abc6f5a commit 340f08f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

alfred/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ include $(TOPDIR)/rules.mk
44

55
PKG_NAME:=alfred
66
PKG_VERSION:=2025.3
7-
PKG_RELEASE:=1
7+
PKG_RELEASE:=2
88

99
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
1010
PKG_SOURCE_URL:=https://downloads.open-mesh.org/batman/releases/batman-adv-$(PKG_VERSION)
@@ -76,7 +76,7 @@ define Package/alfred/install
7676
$(INSTALL_DIR) $(1)/etc/init.d
7777
$(INSTALL_BIN) ./files/alfred.init $(1)/etc/init.d/alfred
7878
$(INSTALL_DIR) $(1)/etc/config
79-
$(INSTALL_DATA) ./files/alfred.config $(1)/etc/config/alfred
79+
$(INSTALL_CONF) ./files/alfred.config $(1)/etc/config/alfred
8080
$(INSTALL_DIR) $(1)/etc/alfred
8181
[ "x$(CONFIG_PACKAGE_ALFRED_BATHOSTS)" == "xy" ] && $(INSTALL_BIN) ./files/bat-hosts.lua $(1)/etc/alfred/bat-hosts.lua ; true
8282
endef

0 commit comments

Comments
 (0)