aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/share.system.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-20 00:07:48 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-20 00:22:18 +0900
commitad0034b09aaa76aca478304518c1394ba292a619 (patch)
tree07fc40ae14d9eecb368997688c0de1eb1e89cb15 /internal/app/share.system.go
parent1da845d78bdd6be03e771958100d388b3e6e9fcc (diff)
app: move app ID to app struct
App ID is inherent to App, and it makes no sense to generate it as part of the app sealing process. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/share.system.go')
-rw-r--r--internal/app/share.system.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/internal/app/share.system.go b/internal/app/share.system.go
index 9b2565a8..478885af 100644
--- a/internal/app/share.system.go
+++ b/internal/app/share.system.go
@@ -20,7 +20,7 @@ func (seal *appSeal) shareSystem() {
// ensure process-specific share (e.g. `/tmp/fortify.%d/%s`)
// acl is unnecessary as this directory is world executable
- seal.share = path.Join(seal.SharePath, seal.id.String())
+ seal.share = path.Join(seal.SharePath, seal.id)
seal.sys.Ephemeral(system.Process, seal.share, 0701)
// ensure child tmpdir parent directory (e.g. `/tmp/fortify.%d/tmpdir`)