diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-02-18 18:47:48 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-02-18 18:47:48 +0900 |
| commit | e0f321b2c4eafba27a93fce93f444b62822c74db (patch) | |
| tree | 95a9517462a53902b71ecbfa8b0ec5d50c080195 /fst | |
| parent | 2c9c7fee5b42d8f32be9ff55ad92345ae62c0af7 (diff) | |
sys: rename from linux
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'fst')
| -rw-r--r-- | fst/sandbox.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fst/sandbox.go b/fst/sandbox.go index a6b1eb56..add559c7 100644 --- a/fst/sandbox.go +++ b/fst/sandbox.go @@ -9,7 +9,7 @@ import ( "git.gensokyo.uk/security/fortify/dbus" "git.gensokyo.uk/security/fortify/helper/bwrap" "git.gensokyo.uk/security/fortify/internal/fmsg" - "git.gensokyo.uk/security/fortify/internal/linux" + "git.gensokyo.uk/security/fortify/internal/sys" ) // SandboxConfig describes resources made available to the sandbox. @@ -47,7 +47,7 @@ type SandboxConfig struct { // Bwrap returns the address of the corresponding bwrap.Config to s. // Note that remaining tmpfs entries must be queued by the caller prior to launch. -func (s *SandboxConfig) Bwrap(os linux.System) (*bwrap.Config, error) { +func (s *SandboxConfig) Bwrap(os sys.State) (*bwrap.Config, error) { if s == nil { return nil, errors.New("nil sandbox config") } @@ -216,7 +216,7 @@ func (s *SandboxConfig) Bwrap(os linux.System) (*bwrap.Config, error) { return conf, nil } -func evalSymlinks(os linux.System, v *string) error { +func evalSymlinks(os sys.State, v *string) error { if p, err := os.EvalSymlinks(*v); err != nil { if !errors.Is(err, fs.ErrNotExist) { return err |
