aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/shim/payload.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-02-16 16:28:46 +0900
committerOphestra <cat@gensokyo.uk>2025-02-16 16:28:46 +0900
commit33a4ab11c226c736c0d8b2644fbbe27a5ca045e9 (patch)
treefaf4e054a5ebbb02a9a99ecae6a83ec9eb993001 /internal/app/shim/payload.go
parent1fa5e992e4e73fd6f1774544e07655b88f9c83d6 (diff)
internal: move shim and init into app
This structure makes more sense, as both processes are part of an app's lifecycle. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/shim/payload.go')
-rw-r--r--internal/app/shim/payload.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/app/shim/payload.go b/internal/app/shim/payload.go
new file mode 100644
index 00000000..e659e3fd
--- /dev/null
+++ b/internal/app/shim/payload.go
@@ -0,0 +1,23 @@
+package shim
+
+import (
+ "git.gensokyo.uk/security/fortify/helper/bwrap"
+)
+
+const Env = "FORTIFY_SHIM"
+
+type Payload struct {
+ // child full argv
+ Argv []string
+ // bwrap, target full exec path
+ Exec [2]string
+ // bwrap config
+ Bwrap *bwrap.Config
+ // path to outer home directory
+ Home string
+ // sync fd
+ Sync *uintptr
+
+ // verbosity pass through
+ Verbose bool
+}