From ae1a102882103221ef842176dfd8cb1090d5f591 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sat, 26 Oct 2024 23:09:32 +0900 Subject: fmsg: support temporarily withholding output Trying to print to a shared stdout is a terrible idea. This change makes it possible to withhold output for the lifetime of the sandbox. Signed-off-by: Ophestra Umiker --- helper/stub.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'helper') diff --git a/helper/stub.go b/helper/stub.go index c0be010b..5b45896f 100644 --- a/helper/stub.go +++ b/helper/stub.go @@ -11,6 +11,7 @@ import ( "testing" "git.ophivana.moe/security/fortify/helper/bwrap" + "git.ophivana.moe/security/fortify/internal/fmsg" ) // InternalChildStub is an internal function but exported because it is cross-package; @@ -33,7 +34,7 @@ func InternalChildStub() { genericStub(argsFD, statFD) } - os.Exit(0) + fmsg.Exit(0) } // InternalReplaceExecCommand is an internal function but exported because it is cross-package; -- cgit v1.3.1