I'm not sure that I want to be married (to this layout) just yet.
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
#include <lxc/attach_options.h>
-#ifdef SCMP_ACT_USER_NOTIF
-#include <linux/seccomp.h>
-#include <seccomp.h>
-#endif
-
#ifdef __cplusplus
extern "C" {
#endif
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.
*
#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;