From 08869f51e87d9b326652e11cdbe1d24f02a5d6af Mon Sep 17 00:00:00 2001 From: Ian Pozella Date: Thu, 5 Jan 2017 09:01:04 +0000 Subject: [PATCH] trousers: set secure permissions for config file If the permissions are too open the tcsd daemon refuses to start. Signed-off-by: Ian Pozella --- trousers/Makefile | 2 +- trousers/files/tcsd.init | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/trousers/Makefile b/trousers/Makefile index 52cb5da..5a43cee 100644 --- a/trousers/Makefile +++ b/trousers/Makefile @@ -2,7 +2,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=trousers PKG_VERSION:=0.3.13 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION) PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz diff --git a/trousers/files/tcsd.init b/trousers/files/tcsd.init index d25f352..2160784 100644 --- a/trousers/files/tcsd.init +++ b/trousers/files/tcsd.init @@ -10,6 +10,7 @@ SYSTEM_DATA_PATH=/usr/share/tpm start_service() { mkdir -pm 775 $SYSTEM_DATA_PATH + chmod 600 $CONFIG_FILE chown -R tss:tss $SYSTEM_DATA_PATH $CONFIG_FILE procd_open_instance