diff --git a/3000-Add-loongarch64-support.patch b/3000-Add-loongarch64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..b5469e2ea7cd1568ef40b0e7c0491c9d98c6c818 --- /dev/null +++ b/3000-Add-loongarch64-support.patch @@ -0,0 +1,42 @@ +From 1b992bf557e4e22ba8d2ec237c8f62ce774cc3b2 Mon Sep 17 00:00:00 2001 +From: yangchenguang +Date: Fri, 12 May 2023 14:38:23 +0800 +Subject: [PATCH] Add loongarch64 support + +Signed-off-by: yangchenguang +--- + programs/addconn/addconn.c | 2 ++ + programs/pluto/pluto_seccomp.c | 2 ++ + 2 files changed, 4 insertions(+) + +diff --git a/programs/addconn/addconn.c b/programs/addconn/addconn.c +index 408e868..e3fc0f1 100644 +--- a/programs/addconn/addconn.c ++++ b/programs/addconn/addconn.c +@@ -122,7 +122,9 @@ static void init_seccomp_addconn(uint32_t def_action, struct logger *logger) + LSW_SECCOMP_ADD(epoll_pwait); + LSW_SECCOMP_ADD(exit_group); + LSW_SECCOMP_ADD(fcntl); ++#ifndef __loongarch64 + LSW_SECCOMP_ADD(fstat); ++#endif + LSW_SECCOMP_ADD(futex); + LSW_SECCOMP_ADD(getdents); + LSW_SECCOMP_ADD(getegid); +diff --git a/programs/pluto/pluto_seccomp.c b/programs/pluto/pluto_seccomp.c +index 4e4f7ff..5404951 100644 +--- a/programs/pluto/pluto_seccomp.c ++++ b/programs/pluto/pluto_seccomp.c +@@ -130,7 +130,9 @@ static void init_seccomp(uint32_t def_action, bool main, struct logger *logger) + LSW_SECCOMP_ADD(gettid); + LSW_SECCOMP_ADD(gettimeofday); + LSW_SECCOMP_ADD(fcntl); ++#ifndef __loongarch64 + LSW_SECCOMP_ADD(fstat); ++#endif + LSW_SECCOMP_ADD(futex); + LSW_SECCOMP_ADD(lseek); + LSW_SECCOMP_ADD(madvise); +-- +2.33.0 + diff --git a/libreswan.spec b/libreswan.spec index 68426b7951d559f787872665837a8ef40f78cd7c..e78dffa4a1dc7409c105c5764d55581cd5a377ca 100644 --- a/libreswan.spec +++ b/libreswan.spec @@ -26,7 +26,7 @@ Name: libreswan Summary: IKE implementation for IPsec with IKEv1 and IKEv2 support Version: 4.12 -Release: 1 +Release: 2 License: GPLv2 Url: https://libreswan.org/ Source0: https://download.libreswan.org/%{name}-%{version}.tar.gz @@ -35,6 +35,8 @@ Source2: https://download.libreswan.org/cavs/ikev1_psk.fax.bz2 Source3: https://download.libreswan.org/cavs/ikev2.fax.bz2 Source4: openeuler-libreswan-sysctl.conf +Patch3000: 3000-Add-loongarch64-support.patch + BuildRequires: audit-libs-devel BuildRequires: bison BuildRequires: curl-devel @@ -190,6 +192,9 @@ certutil -N -d sql:$tmpdir --empty-password %attr(0644,root,root) %doc %{_mandir}/*/* %changelog +* Mon Aug 14 2023 suwei - 4.12-2 +- Add loongarch64 support + * Sat Aug 12 2023 Funda Wang - 4.12-1 - Update to 4.12 for CVE-2023-38710, CVE-2023-38711 and CVE-2023-38712