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