Fix riscv seccomp patch
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
a056577af6
commit
bafbe7491b
|
@ -1,4 +1,4 @@
|
||||||
From 6c7fa659b52a7f1645dba61aedea8a3d62a9ce39 Mon Sep 17 00:00:00 2001
|
From 5231b108f5d5924381e58182f8fd2592d1077caf Mon Sep 17 00:00:00 2001
|
||||||
From: David Abdurachmanov <davidlt@rivosinc.com>
|
From: David Abdurachmanov <davidlt@rivosinc.com>
|
||||||
Date: Fri, 10 Jun 2022 15:58:34 +0300
|
Date: Fri, 10 Jun 2022 15:58:34 +0300
|
||||||
Subject: [PATCH] Add riscv SECCOMP support
|
Subject: [PATCH] Add riscv SECCOMP support
|
||||||
|
@ -6,7 +6,7 @@ Subject: [PATCH] Add riscv SECCOMP support
|
||||||
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
|
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
|
||||||
|
|
||||||
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
|
diff --git a/src/basic/missing_syscall.h b/src/basic/missing_syscall.h
|
||||||
index fc79870..bebd440 100644
|
index fc79870..e4daadc 100644
|
||||||
--- a/src/basic/missing_syscall.h
|
--- a/src/basic/missing_syscall.h
|
||||||
+++ b/src/basic/missing_syscall.h
|
+++ b/src/basic/missing_syscall.h
|
||||||
@@ -81,6 +81,8 @@ static inline int missing_pivot_root(const char *new_root, const char *put_old)
|
@@ -81,6 +81,8 @@ static inline int missing_pivot_root(const char *new_root, const char *put_old)
|
||||||
|
@ -94,7 +94,7 @@ index fc79870..bebd440 100644
|
||||||
# define __NR_statx 383
|
# define __NR_statx 383
|
||||||
# elif defined __sparc__
|
# elif defined __sparc__
|
||||||
# define __NR_statx 360
|
# define __NR_statx 360
|
||||||
+# if defined __riscv
|
+# elif defined __riscv
|
||||||
+# define __NR_statx 291
|
+# define __NR_statx 291
|
||||||
# elif defined __x86_64__
|
# elif defined __x86_64__
|
||||||
# define __NR_statx systemd_SC_arch_bias(332)
|
# define __NR_statx systemd_SC_arch_bias(332)
|
||||||
|
|
Loading…
Reference in New Issue