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.runtime.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'internal/app/share.runtime.go') diff --git a/internal/app/share.runtime.go b/internal/app/share.runtime.go index 79570e67..f7380137 100644 --- a/internal/app/share.runtime.go +++ b/internal/app/share.runtime.go @@ -32,7 +32,7 @@ func (seal *appSeal) shareRuntime() { seal.sys.UpdatePermType(system.User, seal.RuntimePath, acl.Execute) // ensure process-specific share local to XDG_RUNTIME_DIR (e.g. `/run/user/%d/fortify/%s`) - seal.shareLocal = path.Join(seal.RunDirPath, seal.id.String()) + seal.shareLocal = path.Join(seal.RunDirPath, seal.id) seal.sys.Ephemeral(system.Process, seal.shareLocal, 0700) seal.sys.UpdatePerm(seal.shareLocal, acl.Execute) } -- cgit v1.3.1