diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-11 02:01:03 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-11 02:01:03 +0900 |
| commit | 6220f7e197f01846f5e4e3090acf9251f3ae6ade (patch) | |
| tree | b6282fefd49f321ca341c61019b144b2ea4260e5 /internal/app/launch.machinectl.go | |
| parent | b86fa6b4c91a2bf331ae4a50a5aa14b668efc4e6 (diff) | |
app: migrate to new shim implementation
Both machinectl and sudo launch methods launch shim as shim is now responsible for setting up the sandbox. Various app structures are adapted to accommodate bwrap configuration and mediated wayland access.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/launch.machinectl.go')
| -rw-r--r-- | internal/app/launch.machinectl.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/app/launch.machinectl.go b/internal/app/launch.machinectl.go index 21b9d40b..19a81aab 100644 --- a/internal/app/launch.machinectl.go +++ b/internal/app/launch.machinectl.go @@ -8,7 +8,7 @@ import ( "git.ophivana.moe/cat/fortify/internal/verbose" ) -func (a *app) commandBuilderMachineCtl() (args []string) { +func (a *app) commandBuilderMachineCtl(shimEnv string) (args []string) { args = make([]string, 0, 9+len(a.seal.env)) // shell --uid=$USER @@ -25,7 +25,7 @@ func (a *app) commandBuilderMachineCtl() (args []string) { envQ[i] = "-E" + e } // add shim payload to environment for shim path - envQ[len(a.seal.env)] = "-E" + a.shimPayloadEnv() + envQ[len(a.seal.env)] = "-E" + shimEnv args = append(args, envQ...) // -- .host |
