Skip to content

Commit

Permalink
trousers: set secure permissions for config file
Browse files Browse the repository at this point in the history
If the permissions are too open the tcsd daemon refuses to start.

Signed-off-by: Ian Pozella <[email protected]>
  • Loading branch information
Ham22 committed Jan 5, 2017
1 parent 4f613fe commit 06eaec6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions trousers/files/tcsd.init
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 06eaec6

Please sign in to comment.