From 52f21a19f3230e62387bebb88d45d51b6375ac8d Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 18 Dec 2024 19:39:25 +0900 Subject: cmd/fshim: switch to setup pipe The socket-based approach is no longer necessary as fsu allows extra files and sudo compatibility is no longer relevant. Signed-off-by: Ophestra Umiker --- internal/app/start.go | 8 -------- 1 file changed, 8 deletions(-) (limited to 'internal') diff --git a/internal/app/start.go b/internal/app/start.go index 91864510..1ebc94f8 100644 --- a/internal/app/start.go +++ b/internal/app/start.go @@ -4,7 +4,6 @@ import ( "errors" "fmt" "os/exec" - "path" "path/filepath" "strings" @@ -46,7 +45,6 @@ func (a *app) Start() error { uint32(a.seal.sys.UID()), a.seal.sys.user.as, a.seal.sys.user.supp, - path.Join(a.seal.share, "shim"), &shim0.Payload{ Argv: a.seal.command, Exec: shimExec, @@ -252,12 +250,6 @@ func (a *app) Wait() (int, error) { } } - if a.shim.Unwrap() == nil { - fmsg.VPrintln("fault before shim start") - } else { - a.shim.AbortWait(errors.New("shim exited")) - } - if a.seal.sys.needRevert { if err := a.seal.sys.Revert(ec); err != nil { return err.(RevertCompoundError) -- cgit v1.3.1