aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/share.runtime.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-13 02:43:00 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-13 02:43:00 +0900
commite4536b87ad5bc23096eab00f17ac55b7aad23996 (patch)
tree332af06b19f9c8fc6695aa8b5d3d84c0f9d82ccd /internal/app/share.runtime.go
parent65a5f8fb08421f8fb031d4e21a2c460d218616c6 (diff)
app: generate and replace passwd and group files
This ensures libc functions get correct user information. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/share.runtime.go')
-rw-r--r--internal/app/share.runtime.go8
1 files changed, 0 insertions, 8 deletions
diff --git a/internal/app/share.runtime.go b/internal/app/share.runtime.go
index 86add794..ac4135f4 100644
--- a/internal/app/share.runtime.go
+++ b/internal/app/share.runtime.go
@@ -1,7 +1,6 @@
package app
import (
- "os"
"path"
"git.ophivana.moe/cat/fortify/acl"
@@ -13,17 +12,10 @@ const (
xdgRuntimeDir = "XDG_RUNTIME_DIR"
xdgSessionClass = "XDG_SESSION_CLASS"
xdgSessionType = "XDG_SESSION_TYPE"
-
- shell = "SHELL"
)
// shareRuntime queues actions for sharing/ensuring the runtime and share directories
func (seal *appSeal) shareRuntime() {
- // look up shell
- if s, ok := os.LookupEnv(shell); ok {
- seal.sys.setEnv(shell, s)
- }
-
// mount tmpfs on inner runtime (e.g. `/run/user/%d`)
seal.sys.bwrap.Tmpfs = append(seal.sys.bwrap.Tmpfs,
bwrap.PermConfig[bwrap.TmpfsConfig]{