fipc: export config struct
All checks were successful
Tests / Go tests (push) Successful in 1m12s
Nix / NixOS tests (push) Successful in 10m51s

Also store full config as part of state.

Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
2024-12-18 13:45:55 +09:00
parent 5d00805a7c
commit b752ec4468
11 changed files with 100 additions and 49 deletions

View File

@@ -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
}