From b1c428f9e8b41f7bc9aaf4fe2adabb2effbccaed Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Sat, 19 May 2018 21:47:39 +0200 Subject: [PATCH] seccomp: #ifdef SCMP_ARCH_AARCH64 Signed-off-by: Christian Brauner --- src/lxc/seccomp.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index ad1366589..eeb9c8bf3 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -580,19 +580,21 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) cur_rule_arch = lxc_seccomp_arch_all; ctx.architectures[0] = SCMP_ARCH_ARM; - ctx.contexts[0] = get_new_ctx(lxc_seccomp_arch_arm, - default_policy_action, - &ctx.needs_merge[0]); + ctx.contexts[0] = + get_new_ctx(lxc_seccomp_arch_arm, default_policy_action, + &ctx.needs_merge[0]); if (!ctx.contexts[0]) goto bad; +#ifdef SCMP_ARCH_AARCH64 ctx.architectures[2] = SCMP_ARCH_AARCH64; - ctx.contexts[2] = get_new_ctx(lxc_seccomp_arch_arm64, - default_policy_action, - &ctx.needs_merge[2]); + ctx.contexts[2] = + get_new_ctx(lxc_seccomp_arch_arm64, default_policy_action, + &ctx.needs_merge[2]); if (!ctx.contexts[2]) goto bad; #endif +#endif #ifdef SCMP_ARCH_MIPS } else if (native_arch == lxc_seccomp_arch_mips64) { cur_rule_arch = lxc_seccomp_arch_all;