From 5c4058d5ac7e7944973ca8216c258fc50c194e22 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Tue, 25 Mar 2025 01:52:49 +0900 Subject: app: run in native sandbox Signed-off-by: Ophestra --- print.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'print.go') diff --git a/print.go b/print.go index 198136bf..7c6663bd 100644 --- a/print.go +++ b/print.go @@ -89,10 +89,10 @@ func printShowInstance( flags = append(flags, name) } } - writeFlag("userns", sandbox.UserNS) + writeFlag("userns", sandbox.Userns) writeFlag("net", sandbox.Net) writeFlag("dev", sandbox.Dev) - writeFlag("tty", sandbox.NoNewSession) + writeFlag("tty", sandbox.Tty) writeFlag("mapuid", sandbox.MapRealUID) writeFlag("directwl", sandbox.DirectWayland) writeFlag("autoetc", sandbox.AutoEtc) @@ -107,14 +107,14 @@ func printShowInstance( } t.Printf(" Etc:\t%s\n", etc) - if len(sandbox.Override) > 0 { - t.Printf(" Overrides:\t%s\n", strings.Join(sandbox.Override, " ")) + if len(sandbox.Cover) > 0 { + t.Printf(" Cover:\t%s\n", strings.Join(sandbox.Cover, " ")) } // Env map[string]string `json:"env"` // Link [][2]string `json:"symlink"` } - t.Printf(" Command:\t%s\n", strings.Join(config.Command, " ")) + t.Printf(" Command:\t%s\n", strings.Join(config.Args, " ")) t.Printf("\n") if !short { @@ -256,7 +256,7 @@ func printPs(output io.Writer, now time.Time, s state.Store, short, flagJSON boo ) if e.Config != nil { es = e.Config.Confinement.Enablements.String() - cs = fmt.Sprintf("%q", e.Config.Command) + cs = fmt.Sprintf("%q", e.Config.Args) as = strconv.Itoa(e.Config.Confinement.AppID) } t.Printf("\t%s\t%d\t%s\t%s\t%s\t%s\n", -- cgit v1.3.1