diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-04 01:20:12 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-04 01:20:12 +0900 |
| commit | d8f76f3b2594db4687c0203c4f2be8d3e4ef7740 (patch) | |
| tree | b1d8bfb5250d71094e397f8afa87710de1f1ca2f /internal/state/value.go | |
| parent | 7e6eb82195c650bc34829e5cca2d2296e78c0707 (diff) | |
rename to fortify and restructure
More sandbox features will be added and this will no longer track ego's features and behaviour.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/state/value.go')
| -rw-r--r-- | internal/state/value.go | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/internal/state/value.go b/internal/state/value.go new file mode 100644 index 00000000..cb20818c --- /dev/null +++ b/internal/state/value.go @@ -0,0 +1,21 @@ +package state + +import ( + "os/user" +) + +var ( + u *user.User + uid int + command []string +) + +func Set(val user.User, c []string, d int) { + if u != nil { + panic("state set twice") + } + + u = &val + command = c + uid = d +} |
