]> git.ipfire.org Git - thirdparty/dhcpcd.git/commitdiff
src/privsep-linux.c: Add support of Synopsys ARC64 architecture (#66)
authorVeronika Kremneva <kremneva@synopsys.com>
Wed, 27 Oct 2021 19:53:22 +0000 (22:53 +0300)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 19:53:22 +0000 (20:53 +0100)
Signed-off-by: Veronika Kremneva <kremneva@synopsys.com>
src/privsep-linux.c

index f272b4bdadedb637b0b47403dc326a0573236937..2178404afc6f069ceb03c69c41ef12f100610e79 100644 (file)
@@ -165,6 +165,16 @@ ps_root_sendnetlink(struct dhcpcd_ctx *ctx, int protocol, struct msghdr *msg)
 #  else
 #    error "Platform does not support seccomp filter yet"
 #  endif
+#elif defined(__ARCV3__)
+#  if defined(__ARC64__)
+#    if (BYTE_ORDER == LITTLE_ENDIAN)
+#      define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARCV3
+#    else
+#      define SECCOMP_AUDIT_ARCH AUDIT_ARCH_ARCV3BE
+#    endif
+#  else
+#    error "Platform does not support seccomp filter yet"
+#  endif
 #elif defined(__arm__)
 #  ifndef EM_ARM
 #    define EM_ARM 40