From a748d40745611b471ee2a8dd79656aaa174eb03c Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 19 Feb 2025 00:25:00 +0900 Subject: app: store values with string representation Improves code readability without changing memory layout. Signed-off-by: Ophestra --- internal/app/system.go | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) (limited to 'internal/app/system.go') 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 -- cgit v1.3.1