From 9ce4706a0766880c072cccd2643d66f614a6a16b Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 17 Mar 2025 02:48:32 +0900 Subject: sandbox: move params setup functions Signed-off-by: Ophestra --- internal/sandbox/init.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'internal/sandbox/init.go') diff --git a/internal/sandbox/init.go b/internal/sandbox/init.go index 058fe9a2..a6fac1a3 100644 --- a/internal/sandbox/init.go +++ b/internal/sandbox/init.go @@ -13,7 +13,6 @@ import ( "syscall" "time" - "git.gensokyo.uk/security/fortify/helper/proc" "git.gensokyo.uk/security/fortify/seccomp" ) @@ -56,11 +55,11 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) { setupFile *os.File offsetSetup int ) - if f, err := proc.Receive(setupEnv, ¶ms, &setupFile); err != nil { - if errors.Is(err, proc.ErrInvalid) { + if f, err := Receive(setupEnv, ¶ms, &setupFile); err != nil { + if errors.Is(err, ErrInvalid) { log.Fatal("invalid setup descriptor") } - if errors.Is(err, proc.ErrNotSet) { + if errors.Is(err, ErrNotSet) { log.Fatal("FORTIFY_SETUP not set") } -- cgit v1.3.1