app: rename /fortify to /.fortify
All checks were successful
Tests / Go tests (push) Successful in 35s
Nix / NixOS tests (push) Successful in 2m57s

Also removed the inner share tmpfs mount.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2024-12-21 18:11:32 +09:00
parent 8bf12bbe68
commit 7a8b625a57
5 changed files with 249 additions and 253 deletions

View File

@@ -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