app: format mapped uid instead of real uid
All checks were successful
test / test (push) Successful in 19s

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-11-04 00:49:32 +09:00
parent bfcce3ff75
commit 7962681f4a
4 changed files with 19 additions and 14 deletions

View File

@@ -139,7 +139,7 @@ func (a *app) Seal(config *Config) error {
}
} else {
seal.sys.user = u
seal.sys.runtime = path.Join("/run/user", u.Uid)
seal.sys.runtime = path.Join("/run/user", mappedIDString)
}
// map sandbox config to bwrap