diff --git a/add-secure-hostKey-algorithms.patch b/add-secure-hostKey-algorithms.patch new file mode 100644 index 0000000000000000000000000000000000000000..607220ba8a4e8f69f8889a0d0633dc8c05fc84d4 --- /dev/null +++ b/add-secure-hostKey-algorithms.patch @@ -0,0 +1,28 @@ +From 481c36208a45d9309601b557561ed001dbe7eae6 Mon Sep 17 00:00:00 2001 +From: zhengxiaoxiao +Date: Mon, 15 Aug 2022 09:06:32 +0800 +Subject: [PATCH] add secure hostKey algorithms + +--- + security.conf | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/security.conf b/security.conf +index 42d972d..f52a19d 100644 +--- a/security.conf ++++ b/security.conf +@@ -101,6 +101,11 @@ + 122@m@/etc/ssh/sshd_config@GSSAPIKexAlgorithms@ gss-group14-sha256-,gss-group16-sha512-,gss-curve25519-sha256- + 122@m@/etc/ssh/sshd_config@CASignatureAlgorithms@ ssh-ed25519,sk-ssh-ed25519@@openssh.com,rsa-sha2-512,rsa-sha2-256 + ++# secure hostKey algorithms ++123@d@/etc/ssh/sshd_config@HostKey /etc/ssh/ssh_host_ecdsa_key ++123@m@/etc/ssh/sshd_config@HostKeyAlgorithms@ ssh-ed25519,ssh-ed25519-cert-v01@@openssh.com,rsa-sha2-256,rsa-sha2-512 ++123@m@/etc/ssh/sshd_config@PubkeyAcceptedKeyTypes@ ssh-ed25519,ssh-ed25519-cert-v01@@openssh.com,rsa-sha2-256,rsa-sha2-512 ++ + 130@systemctl@sshd.service@restart + + ######################################################################## +-- +2.27.0 + diff --git a/security-tool.spec b/security-tool.spec index c6c262174cac88409a0f3e03c5db16f13bdff9dd..a29a945ec094dd8e6e487d99d51232bb1958e23d 100644 --- a/security-tool.spec +++ b/security-tool.spec @@ -1,7 +1,7 @@ Summary: openEuler Security Tool Name : security-tool Version: 2.0 -Release: 1.80 +Release: 1.81 Source0: https://gitee.com/openeuler/security-tool/repository/archive/v2.0.tar.gz License: Mulan PSL v2 URL: https://gitee.com/openeuler/security-tool @@ -17,6 +17,7 @@ Patch0: Use-secure-MACs-and-KexAlgorithms.patch Patch1: do-not-create-allow-file-while-the-command-does-not-.patch Patch2: remove-sha1-in-sshd-config.patch Patch3: fix-function-allow-rpm-q.patch +Patch4: add-secure-hostKey-algorithms.patch %description openEuler Security Tool @@ -121,6 +122,9 @@ fi %attr(0500,root,root) %{_sbindir}/security-tool.sh %changelog +* Mon Aug 15 2022 zhengxiaoxiao - 2.0-1.81 +- add secure hostKey algorithms + * Thu Jun 30 2022 zhengxiaoxiao - 2.0-1.80 - disabling the dependency on binutils