diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-01-15 10:07:51 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-01-15 10:13:18 +0900 |
| commit | 562f5ed7971603a4e4e3315a7fe4188153bfc205 (patch) | |
| tree | 2a751ea418e305c97bcef5625b5d4b8633b74834 /internal/linux/interface.go | |
| parent | db03565614821695efdb283a81a4733e6d321670 (diff) | |
fst: hide sockets exposed via Filesystem
This is mostly useful for permissive defaults.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/linux/interface.go')
| -rw-r--r-- | internal/linux/interface.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/linux/interface.go b/internal/linux/interface.go index dd0782df..1bb87db9 100644 --- a/internal/linux/interface.go +++ b/internal/linux/interface.go @@ -1,7 +1,6 @@ package linux import ( - "io" "io/fs" "os/user" "path" @@ -30,10 +29,10 @@ type System interface { Stat(name string) (fs.FileInfo, error) // Open provides [os.Open] Open(name string) (fs.File, error) + // EvalSymlinks provides [filepath.EvalSymlinks] + EvalSymlinks(path string) (string, error) // Exit provides [os.Exit]. Exit(code int) - // Stdout provides [os.Stdout]. - Stdout() io.Writer // Paths returns a populated [Paths] struct. Paths() Paths |
