aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/share.pulse.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2024-12-21 18:11:32 +0900
committerOphestra <cat@gensokyo.uk>2024-12-21 18:11:32 +0900
commit7a8b625a57c496b880d6ea0d497b8fd0bb066bc6 (patch)
treefa7ff710c88240791214fc91077833371fec4411 /internal/app/share.pulse.go
parent8bf12bbe683c1edc2c0b1091f87a710630f09bdb (diff)
app: rename /fortify to /.fortify
Also removed the inner share tmpfs mount. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/share.pulse.go')
-rw-r--r--internal/app/share.pulse.go6
1 files changed, 4 insertions, 2 deletions
diff --git a/internal/app/share.pulse.go b/internal/app/share.pulse.go
index 80141cbd..7d4b3542 100644
--- a/internal/app/share.pulse.go
+++ b/internal/app/share.pulse.go
@@ -6,6 +6,7 @@ import (
"io/fs"
"path"
+ "git.gensokyo.uk/security/fortify/fst"
"git.gensokyo.uk/security/fortify/internal/fmsg"
"git.gensokyo.uk/security/fortify/internal/linux"
"git.gensokyo.uk/security/fortify/internal/system"
@@ -69,9 +70,10 @@ func (seal *appSeal) sharePulse(os linux.System) error {
fmsg.VPrintln(err.(*fmsg.BaseError).Message())
} else {
dst := path.Join(seal.share, "pulse-cookie")
- seal.sys.bwrap.SetEnv[pulseCookie] = dst
+ innerDst := fst.Tmp + "/pulse-cookie"
+ seal.sys.bwrap.SetEnv[pulseCookie] = innerDst
seal.sys.CopyFile(dst, src)
- seal.sys.bwrap.Bind(dst, dst)
+ seal.sys.bwrap.Bind(dst, innerDst)
}
return nil