Fix riscv seccomp patch

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
David Abdurachmanov 2022-06-10 16:33:26 +03:00
parent a056577af6
commit bafbe7491b
Signed by: davidlt
GPG Key ID: 8B7F1DA0E2C9FDBB
1 changed files with 3 additions and 3 deletions

View File

@ -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>
Date: Fri, 10 Jun 2022 15:58:34 +0300
Subject: [PATCH] Add riscv SECCOMP support
@ -6,7 +6,7 @@ Subject: [PATCH] Add riscv SECCOMP support
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
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
+++ b/src/basic/missing_syscall.h
@@ -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
# elif defined __sparc__
# define __NR_statx 360
+# if defined __riscv
+# elif defined __riscv
+# define __NR_statx 291
# elif defined __x86_64__
# define __NR_statx systemd_SC_arch_bias(332)