aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2022-03-19 01:49:17 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-03-19 01:49:17 +0000
commita42d408afcb08b85d6c61f0e04b92c9f83487782 (patch)
treef99504fdf3545dc0fea3fc9410dbfab062224730
parente4966f1fe68a3d8de88c59809dd64163b7dbe643 (diff)
parent7e146a20db9a5765cc2fda83fc83698106307a40 (diff)
downloadminijail-a42d408afcb08b85d6c61f0e04b92c9f83487782.tar.gz
tools/compile_seccomp_policy: align BPF buffer am: 7e146a20db
Original change: https://android-review.googlesource.com/c/platform/external/minijail/+/1852508 Change-Id: I87707690e455be8978e71459ceff7827c8f97312
-rwxr-xr-xtools/compile_seccomp_policy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/compile_seccomp_policy.py b/tools/compile_seccomp_policy.py
index 3487357..2219ae5 100755
--- a/tools/compile_seccomp_policy.py
+++ b/tools/compile_seccomp_policy.py
@@ -45,7 +45,7 @@ HEADER_TEMPLATE = """/* DO NOT EDIT GENERATED FILE */
#define MJ_SECCOMP_%(upper_name)s_H
#include <stdint.h>
-static const unsigned char %(name)s_binary_seccomp_policy[] = {
+static const unsigned char %(name)s_binary_seccomp_policy[] __attribute__((__aligned__(4))) = {
%(program)s
};