diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-10 00:11:04 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-10 00:11:04 +0900 |
| commit | 8f03ddc3fa5f559eb58275fa0c64cf87e9d64b0b (patch) | |
| tree | 38316f63028ec6535bb94f57c5586e1bd692f5c1 /internal/app/seal.go | |
| parent | d41b9d2d9ceb60ceb601af991441e70929801c42 (diff) | |
app: remove bubblewrap launch method
Launch methods serve the primary purpose of setting UID in the init namespace, which bubblewrap does not do. Furthermore, all applications will start within a bubblewrap sandbox once it has been implemented.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/seal.go')
| -rw-r--r-- | internal/app/seal.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/internal/app/seal.go b/internal/app/seal.go index 162faf40..ffbd7488 100644 --- a/internal/app/seal.go +++ b/internal/app/seal.go @@ -15,7 +15,6 @@ import ( const ( LaunchMethodSudo uint8 = iota - LaunchMethodBwrap LaunchMethodMachineCtl ) @@ -25,7 +24,6 @@ var ( ErrLaunch = errors.New("invalid launch method") ErrSudo = errors.New("sudo not available") - ErrBwrap = errors.New("bwrap not available") ErrSystemd = errors.New("systemd not available") ErrMachineCtl = errors.New("machinectl not available") ) @@ -75,13 +73,6 @@ func (a *app) Seal(config *Config) error { } else { seal.toolPath = sudoPath } - case "bubblewrap": - seal.launchOption = LaunchMethodBwrap - if bwrapPath, err := exec.LookPath("bwrap"); err != nil { - return (*LauncherLookupError)(wrapError(ErrBwrap, "bwrap not found")) - } else { - seal.toolPath = bwrapPath - } case "systemd": seal.launchOption = LaunchMethodMachineCtl if !internal.SdBootedV { |
