From 5a5a2e8810aaad3129f42f1c62b198eac89cc1a8 Mon Sep 17 00:00:00 2001 From: Michael Buesch Date: Thu, 17 Oct 2024 18:58:33 +0200 Subject: [PATCH] Print to stderr, if seccomp is enabled and not supported --- letmeind/src/main.rs | 2 +- letmeinfwd/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/letmeind/src/main.rs b/letmeind/src/main.rs index ab884ab..44fc9f5 100644 --- a/letmeind/src/main.rs +++ b/letmeind/src/main.rs @@ -88,7 +88,7 @@ fn install_seccomp_rules(seccomp: Seccomp) -> ah::Result<()> { .install() .context("Install seccomp filter")?; } else { - println!( + eprintln!( "WARNING: Not using seccomp. \ Letmein does not support seccomp on this architecture, yet." ); diff --git a/letmeinfwd/src/main.rs b/letmeinfwd/src/main.rs index 08028ae..f49c98c 100644 --- a/letmeinfwd/src/main.rs +++ b/letmeinfwd/src/main.rs @@ -123,7 +123,7 @@ fn install_seccomp_rules(seccomp: Seccomp) -> ah::Result<()> { .install() .context("Install seccomp filter")?; } else { - println!( + eprintln!( "WARNING: Not using seccomp. \ Letmein does not support seccomp on this architecture, yet." );