]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
seccomp: don't commit to an api just yet 2966/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 Apr 2019 23:17:49 +0000 (01:17 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 30 Apr 2019 23:29:06 +0000 (01:29 +0200)
I'm not sure that I want to be married (to this layout) just yet.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.h
src/lxc/lxcseccomp.h

index e2e788993d580d7b41867a7915fb5e949794094e..c367af81af50c3b6111ecabf891e4790586c7729 100644 (file)
 
 #include <lxc/attach_options.h>
 
-#ifdef SCMP_ACT_USER_NOTIF
-#include <linux/seccomp.h>
-#include <seccomp.h>
-#endif
-
 #ifdef  __cplusplus
 extern "C" {
 #endif
@@ -70,16 +65,6 @@ enum {
        LXC_SECCOMP_NOTIFY_MAX,
 };
 
-#ifdef SCMP_ACT_USER_NOTIF
-struct seccomp_notify_proxy_msg {
-       uint32_t version;
-       struct seccomp_notif req;
-       struct seccomp_notif_resp resp;
-       pid_t monitor_pid;
-       pid_t init_pid;
-};
-#endif
-
 /*!
  * An LXC container.
  *
index afb3e73527d8a9de317ee679a217ab3ad07d0814..97394dfef1e251a96ffb56fa56cac5bf967df374 100644 (file)
@@ -47,7 +47,17 @@ struct lxc_handler;
 
 #ifdef HAVE_SECCOMP
 
+
 #if HAVE_DECL_SECCOMP_NOTIF_GET_FD
+
+struct seccomp_notify_proxy_msg {
+       uint32_t version;
+       struct seccomp_notif req;
+       struct seccomp_notif_resp resp;
+       pid_t monitor_pid;
+       pid_t init_pid;
+} __attribute__((packed, aligned(8)));
+
 struct seccomp_notify {
        bool wants_supervision;
        int notify_fd;