diff --git a/add-loongarch.patch b/add-loongarch.patch new file mode 100644 index 0000000000000000000000000000000000000000..ae53632faffec1c6a854e9c2c5601eef0088ab14 --- /dev/null +++ b/add-loongarch.patch @@ -0,0 +1,26 @@ +From b87df88468d90292e7c09b8cfd992011cd812a1c Mon Sep 17 00:00:00 2001 +From: zhaozhen +Date: Mon, 5 Dec 2022 13:01:36 +0000 +Subject: [PATCH] add loongarch64 support + +--- + configure.ac | 3 +++ + 1 file changed, 3 insertions(+) + +diff --git a/configure.ac b/configure.ac +index 307e974..aa3e01b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -972,6 +972,9 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16)) + riscv64-*) + seccomp_audit_arch=AUDIT_ARCH_RISCV64 + ;; ++ loongarch64-*) ++ seccomp_audit_arch=AUDIT_ARCH_LOONGARCHEL64 ++ ;; + esac + if test "x$seccomp_audit_arch" != "x" ; then + AC_MSG_RESULT(["$seccomp_audit_arch"]) +-- +2.33.0 + diff --git a/openssh.spec b/openssh.spec index d752888a174721a345725ff68d8c662419c5d685..84ec3f73971119a4fa6619951e7515c0956ee39e 100644 --- a/openssh.spec +++ b/openssh.spec @@ -6,7 +6,7 @@ %{?no_gtk2:%global gtk2 0} %global sshd_uid 74 -%global openssh_release 8 +%global openssh_release 9 Name: openssh Version: 8.8p1 @@ -90,6 +90,7 @@ Patch59: set-sshd-config.patch Patch60: feature-add-SMx-support.patch Patch61: backport-upstream-a-little-extra-debugging.patch Patch62: backport-upstream-better-debugging-for-connect_next.patch +Patch63: add-loongarch.patch Requires: /sbin/nologin Requires: libselinux >= 2.3-5 audit-libs >= 1.0.8 @@ -230,6 +231,7 @@ popd %patch60 -p1 %patch61 -p1 %patch62 -p1 +%patch63 -p1 autoreconf pushd pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4 @@ -273,7 +275,7 @@ fi --without-zlib-version-check --with-ssl-engine --with-ipaddr-display \ --with-pie=no --without-hardening --with-systemd --with-default-pkcs11-provider=yes \ --with-pam --with-selinux --with-audit=linux --with-security-key-buildin=yes \ -%ifnarch riscv64 +%ifnarch riscv64 loongarch64 --with-sandbox=seccomp_filter \ %endif --with-kerberos5${krb5_prefix:+=${krb5_prefix}} --with-libedit @@ -431,6 +433,12 @@ getent passwd sshd >/dev/null || \ %attr(0644,root,root) %{_mandir}/man8/sftp-server.8* %changelog +* Mon Nov 28 2022 zhaozhen - 8.8p1-9 +- Type:feature +- CVE:NA +- SUG:NA +- DESC:Add loongarch64 support + * Mon Nov 28 2022 renmingshuai - 8.8p1-8 - Type:bugfix - CVE:NA