mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-27 16:18:16 +00:00
seccomp: #ifdef SCMP_ARCH_AARCH64
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
parent
dd66700c56
commit
b1c428f9e8
@ -580,19 +580,21 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf)
|
|||||||
cur_rule_arch = lxc_seccomp_arch_all;
|
cur_rule_arch = lxc_seccomp_arch_all;
|
||||||
|
|
||||||
ctx.architectures[0] = SCMP_ARCH_ARM;
|
ctx.architectures[0] = SCMP_ARCH_ARM;
|
||||||
ctx.contexts[0] = get_new_ctx(lxc_seccomp_arch_arm,
|
ctx.contexts[0] =
|
||||||
default_policy_action,
|
get_new_ctx(lxc_seccomp_arch_arm, default_policy_action,
|
||||||
&ctx.needs_merge[0]);
|
&ctx.needs_merge[0]);
|
||||||
if (!ctx.contexts[0])
|
if (!ctx.contexts[0])
|
||||||
goto bad;
|
goto bad;
|
||||||
|
|
||||||
|
#ifdef SCMP_ARCH_AARCH64
|
||||||
ctx.architectures[2] = SCMP_ARCH_AARCH64;
|
ctx.architectures[2] = SCMP_ARCH_AARCH64;
|
||||||
ctx.contexts[2] = get_new_ctx(lxc_seccomp_arch_arm64,
|
ctx.contexts[2] =
|
||||||
default_policy_action,
|
get_new_ctx(lxc_seccomp_arch_arm64, default_policy_action,
|
||||||
&ctx.needs_merge[2]);
|
&ctx.needs_merge[2]);
|
||||||
if (!ctx.contexts[2])
|
if (!ctx.contexts[2])
|
||||||
goto bad;
|
goto bad;
|
||||||
#endif
|
#endif
|
||||||
|
#endif
|
||||||
#ifdef SCMP_ARCH_MIPS
|
#ifdef SCMP_ARCH_MIPS
|
||||||
} else if (native_arch == lxc_seccomp_arch_mips64) {
|
} else if (native_arch == lxc_seccomp_arch_mips64) {
|
||||||
cur_rule_arch = lxc_seccomp_arch_all;
|
cur_rule_arch = lxc_seccomp_arch_all;
|
||||||
|
Loading…
Reference in New Issue
Block a user