From 7a8b625a57c496b880d6ea0d497b8fd0bb066bc6 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 21 Dec 2024 18:11:32 +0900 Subject: app: rename /fortify to /.fortify Also removed the inner share tmpfs mount. Signed-off-by: Ophestra --- internal/app/share.pulse.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/app/share.pulse.go') 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 -- cgit v1.3.1