From ad0034b09aaa76aca478304518c1394ba292a619 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Sun, 20 Oct 2024 00:07:48 +0900 Subject: 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 --- internal/app/share.system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/app/share.system.go') 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`) -- cgit v1.3.1