aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Verkamp <dverkamp@chromium.org>2022-03-19 02:04:56 +0000
committerAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>2022-03-19 02:04:56 +0000
commita8485bef11b7d201f117c2c5a83720dbe84d287b (patch)
treef99504fdf3545dc0fea3fc9410dbfab062224730
parent67d0658194751b0773a4f352dfc954581e15dab8 (diff)
parenta42d408afcb08b85d6c61f0e04b92c9f83487782 (diff)
downloadminijail-a8485bef11b7d201f117c2c5a83720dbe84d287b.tar.gz
tools/compile_seccomp_policy: align BPF buffer am: 7e146a20db am: a42d408afc
Original change: https://android-review.googlesource.com/c/platform/external/minijail/+/1852508 Change-Id: I72facc6e6627a897acc1646baad2760a839a7088
-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
};