[prev in list] [next in list] [prev in thread] [next in thread]
List: lxc-devel
Subject: [lxc-devel] [lxd/master] lxd/seccomp: Only define Go arch (and include elf)
From: stgraber on Github <lxc-bot () linuxcontainers ! org>
Date: 2019-07-24 14:14:02
Message-ID: 5d3867aa.1c69fb81.44058.275cSMTPIN_ADDED_MISSING () mx ! google ! com
[Download RAW message or body]
[Attachment #2 (text/x-mailbox)]
The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/6008
This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.
=== Description (from pull-request) ===
This should fix Centos 7 builds.
Closes #5993
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
[Attachment #3 (text/plain)]
From 5b9945787ae5aca2c21530426e272d8db73906f4 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stéphane Graber?= <stgraber@ubuntu.com>
Date: Wed, 24 Jul 2019 10:13:08 -0400
Subject: [PATCH] lxd/seccomp: Only define Go arch (and include elf)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
This should fix Centos 7 builds.
Closes #5993
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
---
lxd/seccomp.go | 64 +-------------------------------------------------
1 file changed, 1 insertion(+), 63 deletions(-)
diff --git a/lxd/seccomp.go b/lxd/seccomp.go
index d17f451ef7..c24332789a 100644
--- a/lxd/seccomp.go
+++ b/lxd/seccomp.go
@@ -31,6 +31,7 @@ import (
#ifndef _GNU_SOURCE
#define _GNU_SOURCE 1
#endif
+#include <elf.h>
#include <errno.h>
#include <fcntl.h>
#include <linux/seccomp.h>
@@ -176,12 +177,6 @@ static const struct lxd_seccomp_data_arch seccomp_notify_syscall_table[] = {
#ifdef AUDIT_ARCH_S390X
{ AUDIT_ARCH_S390X, 14, 290, 224 },
#endif
-#ifdef AUDIT_ARCH_RISCV32
- { AUDIT_ARCH_RISCV32, -1, 33, 5 },
-#endif
-#ifdef AUDIT_ARCH_RISCV64
- { AUDIT_ARCH_RISCV64, -1, 33, 5 },
-#endif
#ifdef AUDIT_ARCH_PPC
{ AUDIT_ARCH_PPC, 14, 288, 209 },
#endif
@@ -191,45 +186,12 @@ static const struct lxd_seccomp_data_arch seccomp_notify_syscall_table[] = {
#ifdef AUDIT_ARCH_PPC64LE
{ AUDIT_ARCH_PPC64LE, 14, 288, 209 },
#endif
-#ifdef AUDIT_ARCH_IA64
- { AUDIT_ARCH_IA64, 13, 259, 193 },
-#endif
#ifdef AUDIT_ARCH_SPARC
{ AUDIT_ARCH_SPARC, 14, 286, 169 },
#endif
#ifdef AUDIT_ARCH_SPARC64
{ AUDIT_ARCH_SPARC64, 14, 286, 169 },
#endif
-#ifdef AUDIT_ARCH_ALPHA
- { AUDIT_ARCH_ALPHA, 14, 452, 382 },
-#endif
-#ifdef AUDIT_ARCH_OPENRISC
- { AUDIT_ARCH_OPENRISC, -1, 33, 5 },
-#endif
-#ifdef AUDIT_ARCH_PARISC
- { AUDIT_ARCH_PARISC, 14, 277, 238 },
-#endif
-#ifdef AUDIT_ARCH_PARISC64
- { AUDIT_ARCH_PARISC64, 14, 277, 238 },
-#endif
-#ifdef AUDIT_ARCH_CRIS
- { AUDIT_ARCH_CRIS, -1, -1, -1 },
-#endif
-#ifdef AUDIT_ARCH_CSKY
- { AUDIT_ARCH_CSKY, -1, 33, 5 },
-#endif
-#ifdef AUDIT_ARCH_FRV
- { AUDIT_ARCH_FRV, -1, -1, -1 },
-#endif
-#ifdef AUDIT_ARCH_M32R
- { AUDIT_ARCH_M32R, -1, -1, -1 },
-#endif
-#ifdef AUDIT_ARCH_M68K
- { AUDIT_ARCH_M68K, 14, 290, 223 },
-#endif
-#ifdef AUDIT_ARCH_MICROBLAZE
- { AUDIT_ARCH_MICROBLAZE, 14, 297, 226 },
-#endif
#ifdef AUDIT_ARCH_MIPS
{ AUDIT_ARCH_MIPS, 14, 290, 224 },
#endif
@@ -248,30 +210,6 @@ static const struct lxd_seccomp_data_arch seccomp_notify_syscall_table[] = {
#ifdef AUDIT_ARCH_MIPSEL64N32
{ AUDIT_ARCH_MIPSEL64N32, 131, 253, 180 },
#endif
-#ifdef AUDIT_ARCH_SH
- { AUDIT_ARCH_SH, 14, 297, 226 },
-#endif
-#ifdef AUDIT_ARCH_SHEL
- { AUDIT_ARCH_SHEL, 14, 297, 226 },
-#endif
-#ifdef AUDIT_ARCH_SH64
- { AUDIT_ARCH_SH64, 14, 325, 254 },
-#endif
-#ifdef AUDIT_ARCH_SHEL64
- { AUDIT_ARCH_SHEL64, 14, 325, 254 },
-#endif
-#ifdef AUDIT_ARCH_TILEGX
- { AUDIT_ARCH_TILEGX, -1, -1, -1 },
-#endif
-#ifdef AUDIT_ARCH_TILEGX32
- { AUDIT_ARCH_TILEGX32, -1, -1, -1 },
-#endif
-#ifdef AUDIT_ARCH_TILEPRO
- { AUDIT_ARCH_TILEPRO, -1, -1, -1 },
-#endif
-#ifdef AUDIT_ARCH_XTENSA
- { AUDIT_ARCH_XTENSA, 36, 290, 68 },
-#endif
};
static int seccomp_notify_get_syscall(struct seccomp_notif *req,
[Attachment #4 (text/plain)]
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic