From mboxrd@z Thu Jan 1 00:00:00 1970 From: Peter =?utf-8?q?M=C3=BCller?= To: development@lists.ipfire.org Subject: [PATCH] OpenSSH: restrict file permissions for sshd_config to 0600 Date: Sun, 30 May 2021 12:33:31 +0200 Message-ID: <67fe68bc-5337-daa6-c150-1d0e334d309a@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============4795268833359266122==" List-Id: --===============4795268833359266122== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit 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 --- lfs/openssh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs/openssh b/lfs/openssh index 3117e996c..ced1a7db9 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 -- 2.26.2 --===============4795268833359266122==--