From d913414848770d7b5b33ab465ba4cd524da7368f Mon Sep 17 00:00:00 2001 From: root Date: Thu, 26 Sep 2024 17:35:21 +0800 Subject: [PATCH] add sw64 patch --- 0025-lxcfs-Add-sw64-architecture.patch | 21 +++++++++++++++++++++ lxcfs.spec | 6 +++++- 2 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 0025-lxcfs-Add-sw64-architecture.patch diff --git a/0025-lxcfs-Add-sw64-architecture.patch b/0025-lxcfs-Add-sw64-architecture.patch new file mode 100644 index 0000000..1044562 --- /dev/null +++ b/0025-lxcfs-Add-sw64-architecture.patch @@ -0,0 +1,21 @@ +diff -uNar lxcfs-4.0.11/src/syscall_numbers.h lxcfs-4.0.11.sw/src/syscall_numbers.h +--- lxcfs-4.0.11/src/syscall_numbers.h 2021-10-21 22:32:31.000000000 +0800 ++++ lxcfs-4.0.11.sw/src/syscall_numbers.h 2024-09-26 17:29:43.622496853 +0800 +@@ -39,6 +39,8 @@ + #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ + #define __NR_pivot_root 5151 + #endif ++ #elif defined __sw_64__ ++ #define __NR_pivot_root 374 + #else + #define -1 + #warning "__NR_pivot_root not defined for your architecture" +@@ -72,6 +74,8 @@ + #if _MIPS_SIM == _MIPS_SIM_ABI64 /* n64 */ + #define __NR_bpf 5315 + #endif ++ #elif defined __sw_64__ ++ #define __NR_bpf 170 + #else + #define -1 + #warning "__NR_bpf not defined for your architecture" diff --git a/lxcfs.spec b/lxcfs.spec index 544d75e..27f2c2b 100644 --- a/lxcfs.spec +++ b/lxcfs.spec @@ -4,7 +4,7 @@ #Basic Information Name: lxcfs Version: 4.0.11 -Release: 9 +Release: 10 Summary: FUSE filesystem for LXC License: LGPL 2.1+ URL: http://linuxcontainers.org @@ -34,6 +34,7 @@ Patch9021: 0021-fix-pidfd_open-pidfd_send_signal-function-compilatio.patch Patch9022: 0022-cpuview-fix-possible-use-after-free-in-find_proc_sta.patch Patch9023: 0023-proc-fix-proc-diskstats-output-format.patch Patch9024: 0024-typofix-fix-incorrect-printing-in-lxcfs-help-interfa.patch +Patch9025: 0025-lxcfs-Add-sw64-architecture.patch #Dependency BuildRequires: autoconf automake libtool help2man @@ -95,6 +96,9 @@ fi %{_unitdir}/* %changelog +* Thu Sep 26 2024 wuzx - 4.0.11-10 +- add sw64 patch + * Fri Dec 15 2023 yangjiaqi - 4.0.11-9 - Type:bugfix - CVE:NA -- Gitee