aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/state/state.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-12-18 13:45:55 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-12-18 13:45:55 +0900
commitb752ec44689aa5a3a0f3b9672b218691f161c7c1 (patch)
treeb514cb0c247f8deaa9feba84d9f8944623911f5d /internal/state/state.go
parent5d00805a7c775382516e05b5b01e58df651408ab (diff)
fipc: export config struct
Also store full config as part of state. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/state/state.go')
-rw-r--r--internal/state/state.go14
1 files changed, 6 insertions, 8 deletions
diff --git a/internal/state/state.go b/internal/state/state.go
index ee5a95f7..bb23932a 100644
--- a/internal/state/state.go
+++ b/internal/state/state.go
@@ -3,7 +3,7 @@ package state
import (
"time"
- "git.ophivana.moe/security/fortify/internal/system"
+ "git.ophivana.moe/security/fortify/fipc"
)
type Store interface {
@@ -26,15 +26,13 @@ type Backend interface {
// State is the on-disk format for a fortified process's state information
type State struct {
+ // fortify instance id
+ ID [16]byte `json:"instance"`
// child process PID value
- PID int
- // command used to seal the app
- Command []string
- // capability enablements applied to child
- Capability system.Enablements
+ PID int `json:"pid"`
+ // sealed app configuration
+ Config *fipc.Config `json:"config"`
- // full argv whe launching
- Argv []string
// process start time
Time time.Time
}