From: Peter Müller Date: Sun, 30 May 2021 10:33:31 +0000 (+0200) Subject: OpenSSH: restrict file permissions for sshd_config to 0600 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9fb87809eccdc7ea7736659ceec929a028761d4;p=people%2Fpmueller%2Fipfire-2.x.git OpenSSH: restrict file permissions for sshd_config to 0600 This file does not have to be readable by anybody else than the user running an OpenSSH server. While it does not really contain confidential information, exposing it to the rest of the world makes no sense either. This will silence a Lynis warning. :-) Signed-off-by: Peter Müller Signed-off-by: Michael Tremer --- diff --git a/lfs/openssh b/lfs/openssh index 3117e996c9..ced1a7db97 100644 --- a/lfs/openssh +++ b/lfs/openssh @@ -84,7 +84,7 @@ $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) cd $(DIR_APP) && make install # install custom OpenSSH server configuration - install -v -m 644 $(DIR_SRC)/config/ssh/sshd_config \ + install -v -m 600 $(DIR_SRC)/config/ssh/sshd_config \ /etc/ssh/sshd_config # install custom OpenSSH client configuration