diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-06-25 03:59:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-06-25 04:57:41 +0900 |
| commit | 87e008d56de974947ebb99c2cc40b25d3c2cf43e (patch) | |
| tree | 31791911e5226d6ec04e3fac7d91b0bf53e63aa5 /internal/sys/interface.go | |
| parent | 399207321265307bb15f37d867f9370cd51c82a8 (diff) | |
treewide: rename to hakurei
Fortify makes little sense for a container tool.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/sys/interface.go')
| -rw-r--r-- | internal/sys/interface.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/sys/interface.go b/internal/sys/interface.go index ba8e0bf4..57c5a7ec 100644 --- a/internal/sys/interface.go +++ b/internal/sys/interface.go @@ -6,8 +6,8 @@ import ( "path" "strconv" - "git.gensokyo.uk/security/fortify/internal/app" - "git.gensokyo.uk/security/fortify/internal/fmsg" + "git.gensokyo.uk/security/hakurei/internal/app" + "git.gensokyo.uk/security/hakurei/internal/hlog" ) // State provides safe interaction with operating system state. @@ -42,25 +42,25 @@ type State interface { // Paths returns a populated [Paths] struct. Paths() app.Paths - // Uid invokes fsu and returns target uid. + // Uid invokes hsu and returns target uid. // Any errors returned by Uid is already wrapped [fmsg.BaseError]. Uid(aid int) (int, error) } -// CopyPaths is a generic implementation of [fst.Paths]. +// CopyPaths is a generic implementation of [hst.Paths]. func CopyPaths(os State, v *app.Paths) { - v.SharePath = path.Join(os.TempDir(), "fortify."+strconv.Itoa(os.Getuid())) + v.SharePath = path.Join(os.TempDir(), "hakurei."+strconv.Itoa(os.Getuid())) - fmsg.Verbosef("process share directory at %q", v.SharePath) + hlog.Verbosef("process share directory at %q", v.SharePath) if r, ok := os.LookupEnv(xdgRuntimeDir); !ok || r == "" || !path.IsAbs(r) { - // fall back to path in share since fortify has no hard XDG dependency + // fall back to path in share since hakurei has no hard XDG dependency v.RunDirPath = path.Join(v.SharePath, "run") v.RuntimePath = path.Join(v.RunDirPath, "compat") } else { v.RuntimePath = r - v.RunDirPath = path.Join(v.RuntimePath, "fortify") + v.RunDirPath = path.Join(v.RuntimePath, "hakurei") } - fmsg.Verbosef("runtime directory at %q", v.RunDirPath) + hlog.Verbosef("runtime directory at %q", v.RunDirPath) } |
