[lxc-devel] [lxd/master] checkfeature: ifdef SECCOMP_GET_ACTION_AVAIL

brauner on Github lxc-bot at linuxcontainers.org
Wed Jul 24 09:23:12 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 450 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190724/df4bac7d/attachment.bin>
-------------- next part --------------
From 96273a6501f07884950000428221c62364208f49 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 24 Jul 2019 11:22:21 +0200
Subject: [PATCH] checkfeature: ifdef SECCOMP_GET_ACTION_AVAIL

Link: https://discuss.linuxcontainers.org/t/error-while-compiling-lxd-3-14-3-15/5262
Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 lxd/main_checkfeature.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lxd/main_checkfeature.go b/lxd/main_checkfeature.go
index bb7abc69a4..9bfff90093 100644
--- a/lxd/main_checkfeature.go
+++ b/lxd/main_checkfeature.go
@@ -134,6 +134,10 @@ void is_uevent_aware()
 #define SECCOMP_RET_USER_NOTIF 0x7fc00000U
 #endif
 
+#ifdef SECCOMP_GET_ACTION_AVAIL
+#define SECCOMP_GET_ACTION_AVAIL 2
+#endif
+
 void is_seccomp_notify_aware(void)
 {
 	__u32 action[] = { SECCOMP_RET_USER_NOTIF };


More information about the lxc-devel mailing list