[lxc-devel] [lxc/master] seccomp: remove alignment requirements

brauner on Github lxc-bot at linuxcontainers.org
Wed May 1 00:05:21 UTC 2019


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 487 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20190430/815739dc/attachment.bin>
-------------- next part --------------
From 2a621eceddce438392be2a691abc36116defcb18 Mon Sep 17 00:00:00 2001
From: Christian Brauner <christian.brauner at ubuntu.com>
Date: Wed, 1 May 2019 02:04:02 +0200
Subject: [PATCH] seccomp: remove alignment requirements

since apparently there are insane programming languages out there that just
silently remove packed members in structs.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>
---
 src/lxc/lxcseccomp.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxcseccomp.h b/src/lxc/lxcseccomp.h
index 97394dfef1..85bccd2141 100644
--- a/src/lxc/lxcseccomp.h
+++ b/src/lxc/lxcseccomp.h
@@ -56,7 +56,7 @@ struct seccomp_notify_proxy_msg {
 	struct seccomp_notif_resp resp;
 	pid_t monitor_pid;
 	pid_t init_pid;
-} __attribute__((packed, aligned(8)));
+};
 
 struct seccomp_notify {
 	bool wants_supervision;


More information about the lxc-devel mailing list