From b760b123090efa726b6c8363248f93fa21da4617 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Sat, 12 Oct 2024 22:25:54 +0200 Subject: [PATCH] Fix arm build --- letmein-seccomp/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/letmein-seccomp/src/lib.rs b/letmein-seccomp/src/lib.rs index 83d2f4a..7b2ae16 100644 --- a/letmein-seccomp/src/lib.rs +++ b/letmein-seccomp/src/lib.rs @@ -265,7 +265,7 @@ impl Filter { } Allow::ArchPrctl { op: _ } => { //TODO restrict to op - #[cfg(not(target_os = "android"))] + #[cfg(target_arch = "x86_64")] add_sys(&mut map, sys!(SYS_arch_prctl)); } Allow::Dup => { @@ -341,7 +341,7 @@ impl Filter { Allow::Stat => { add_sys(&mut map, sys!(SYS_fstat)); add_sys(&mut map, sys!(SYS_statx)); - #[cfg(not(target_os = "android"))] + #[cfg(target_arch = "x86_64")] add_sys(&mut map, sys!(SYS_newfstatat)); } Allow::Recv => {