aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/process_linux.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-28 00:22:55 +0900
committerOphestra <cat@gensokyo.uk>2025-08-28 00:22:55 +0900
commit1be8de6f5ca4c7e40f5999ce4f960010fc36acb1 (patch)
tree5e8b48cc9fdef7f487d9356d21fdc66eb4edf847 /internal/app/process_linux.go
parent0f41d9667133401f48fb54174cb2b120ed7a769c (diff)
internal/app: less strict username regex
Use the default value of NAME_REGEX from adduser. Should not hurt compatibility while being less strict. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/process_linux.go')
-rw-r--r--internal/app/process_linux.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/app/process_linux.go b/internal/app/process_linux.go
index 57b49eea..c7da4746 100644
--- a/internal/app/process_linux.go
+++ b/internal/app/process_linux.go
@@ -44,7 +44,7 @@ func (seal *outcome) Run(rs *RunState) error {
defer func() {
var revertErr error
storeErr := new(StateStoreError)
- storeErr.Inner, storeErr.DoErr = store.Do(seal.user.aid.unwrap(), func(c state.Cursor) {
+ storeErr.Inner, storeErr.DoErr = store.Do(seal.user.identity.unwrap(), func(c state.Cursor) {
revertErr = func() error {
storeErr.InnerErr = deferredStoreFunc(c)
@@ -102,7 +102,7 @@ func (seal *outcome) Run(rs *RunState) error {
// passed through to shim by hsu
shimEnv + "=" + strconv.Itoa(fd),
// interpreted by hsu
- "HAKUREI_APP_ID=" + seal.user.aid.String(),
+ "HAKUREI_APP_ID=" + seal.user.identity.String(),
}
}
@@ -155,7 +155,7 @@ func (seal *outcome) Run(rs *RunState) error {
PID: cmd.Process.Pid,
Time: *rs.Time,
}
- earlyStoreErr.Inner, earlyStoreErr.DoErr = store.Do(seal.user.aid.unwrap(), func(c state.Cursor) {
+ earlyStoreErr.Inner, earlyStoreErr.DoErr = store.Do(seal.user.identity.unwrap(), func(c state.Cursor) {
earlyStoreErr.InnerErr = c.Save(&sd, seal.ct)
})
}