From d8f76f3b2594db4687c0203c4f2be8d3e4ef7740 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 4 Sep 2024 01:20:12 +0900 Subject: 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 --- internal/state/value.go | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 internal/state/value.go (limited to 'internal/state/value.go') 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 +} -- cgit v1.3.1