app: store values with string representation

Improves code readability without changing memory layout.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2025-02-19 00:25:00 +09:00
parent 648e1d641a
commit a748d40745
7 changed files with 64 additions and 46 deletions

View File

@@ -21,9 +21,7 @@ type appSealSys struct {
user appUser
// mapped uid and gid in user namespace
mappedID int
// string representation of mappedID
mappedIDString string
mapuid *stringPair[int]
needRevert bool
saveState bool
@@ -33,19 +31,14 @@ type appSealSys struct {
}
type appUser struct {
// full uid resolved by fsu
uid int
// string representation of uid
us string
// application id
aid *stringPair[int]
// target uid resolved by fid:aid
uid *stringPair[int]
// supplementary group ids
supp []string
// application id
aid int
// string representation of aid
as string
// home directory host path
data string
// app user home directory