add loongarch64 support

Signed-off-by: herengui <herengui@kylinsec.com.cn>
This commit is contained in:
herengui 2023-08-10 11:18:50 +08:00
parent 5b30c5d741
commit 4c7aba0448
2 changed files with 36 additions and 1 deletions

View File

@ -2,7 +2,7 @@
Name: chrony
Version: 4.1
Release: 5
Release: 6
Summary: An NTP client/server
License: GPLv2
URL: https://chrony.tuxfamily.org
@ -12,6 +12,7 @@ Source1: chrony.dhclient
Source6: https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/clknetsim-%{clknetsim_ver}.tar.gz
Patch1: chrony-nm-dispatcher-dhcp.patch
Patch2: feat-loongarch64-do-not-support-fstat.patch
Patch6000: backport-rework-command-and-limit-the-length-of-command.patch
@ -139,6 +140,12 @@ fi
%{_mandir}/man[158]/%{name}*.[158]*
%changelog
* Thu Aug 10 2023 herengui <herengui@kylinsec.com.cn> - 4.1-6
- Type:bugfix
- ID:NA
- SUG:NA
- DESC:add loongarch64 support
* Mon May 8 2023 chengyechun <chengyechun1@huawei.com> - 4.1-5
- Type:bugfix
- ID:NA

View File

@ -0,0 +1,28 @@
From 8e2ee1c4d87fbcfa29d5d7baa9845907e6a77c96 Mon Sep 17 00:00:00 2001
From: yangchenguang <yangchenguang@kylinsec.com.cn>
Date: Wed, 10 May 2023 17:36:24 +0800
Subject: [PATCH] loongarch64 do not support fstat
Signed-off-by: yangchenguang <yangchenguang@kylinsec.com.cn>
---
sys_linux.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/sys_linux.c b/sys_linux.c
index 2b53f72..68d0ba3 100644
--- a/sys_linux.c
+++ b/sys_linux.c
@@ -539,7 +539,9 @@ SYS_Linux_EnableSystemCallFilter(int level, SYS_ProcessContext context)
SCMP_SYS(faccessat),
SCMP_SYS(fchmodat),
SCMP_SYS(fchownat),
- SCMP_SYS(fstat),
+#ifndef __loongarch64
+ SCMP_SYS(fstat),
+#endif
SCMP_SYS(fstat64),
SCMP_SYS(fstatat64),
SCMP_SYS(getdents),
--
2.33.0