aboutsummaryrefslogtreecommitdiffhomepage
path: root/container/fhs/abs.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-02-28 20:42:33 +0900
committerOphestra <cat@gensokyo.uk>2026-02-28 20:44:44 +0900
commitc74c269b66770f0eddde255d2805b79f274409e9 (patch)
tree02cb3e1bed01d24776d8d47a9c8fca47ed3d7343 /container/fhs/abs.go
parent4b0cce4db5f8e75c79e104f8c5ec02cb4541ed76 (diff)
container: use /proc/self/exe directly
This is a more reliable form of pathname to self and also cheaper than os.Executable. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/fhs/abs.go')
-rw-r--r--container/fhs/abs.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/container/fhs/abs.go b/container/fhs/abs.go
index fda6971d..45c50bfd 100644
--- a/container/fhs/abs.go
+++ b/container/fhs/abs.go
@@ -42,6 +42,8 @@ var (
AbsDevShm = unsafeAbs(DevShm)
// AbsProc is [Proc] as [check.Absolute].
AbsProc = unsafeAbs(Proc)
+ // AbsProcSelfExe is [ProcSelfExe] as [check.Absolute].
+ AbsProcSelfExe = unsafeAbs(ProcSelfExe)
// AbsSys is [Sys] as [check.Absolute].
AbsSys = unsafeAbs(Sys)
)