diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-19 00:25:00 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-19 00:25:00 +0900 |
| commit | a748d40745611b471ee2a8dd79656aaa174eb03c (patch) | |
| tree | 6734d036b37ebd40798578a60cf54c2527515a60 /internal/app/system.go | |
| parent | 648e1d641a8b0ae7c5bc4899f84b884d4335c97f (diff) | |
app: store values with string representation
Improves code readability without changing memory layout.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/system.go')
| -rw-r--r-- | internal/app/system.go | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/internal/app/system.go b/internal/app/system.go index ccc5293f..3a92b0fd 100644 --- a/internal/app/system.go +++ b/internal/app/system.go @@ -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 |
