diff options
| author | Ophestra <cat@gensokyo.uk> | 2024-12-29 23:48:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2024-12-29 23:48:45 +0900 |
| commit | 66ba4cea5cbbc1b0aa60bc47c923c9713abd3aa0 (patch) | |
| tree | 184d7f8dd7c52ea24f7abab2157330a4233fa982 /cmd/fpkg/install.go | |
| parent | f8d0786509dcd68ea674c0b37201e2e8a60f98e8 (diff) | |
cmd/fpkg: remove workDir acl from activation
Activation does not require access to workDir, and by this point all information is available in dataHome.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/fpkg/install.go')
| -rw-r--r-- | cmd/fpkg/install.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/fpkg/install.go b/cmd/fpkg/install.go index 36661647..5e4d67ab 100644 --- a/cmd/fpkg/install.go +++ b/cmd/fpkg/install.go @@ -155,7 +155,7 @@ func actionInstall(args []string) { "rm -rf .local/state/{nix,home-manager}", // run activation script bundle.ActivationPackage + "/activate", - }, false, workDir, bundle, pathSet, dropShellActivate, cleanup) + }, false, bundle, pathSet, dropShellActivate, cleanup) /* Installation complete. Write metadata to block re-installs or downgrades. @@ -184,7 +184,7 @@ func actionInstall(args []string) { cleanup() } -func withNixDaemon(action string, command []string, net bool, workDir string, bundle *bundleInfo, pathSet *appPathSet, dropShell bool, beforeFail func()) { +func withNixDaemon(action string, command []string, net bool, bundle *bundleInfo, pathSet *appPathSet, dropShell bool, beforeFail func()) { fortifyAppDropShell(&fst.Config{ ID: bundle.ID, Command: []string{shell, "-lc", "rm -f /nix/var/nix/daemon-socket/socket && " + @@ -221,7 +221,6 @@ func withNixDaemon(action string, command []string, net bool, workDir string, bu ExtraPerms: []*fst.ExtraPermConfig{ {Path: dataHome, Execute: true}, {Ensure: true, Path: pathSet.baseDir, Read: true, Write: true, Execute: true}, - {Path: workDir, Execute: true}, }, }, }, dropShell, beforeFail) |
