From c74c269b66770f0eddde255d2805b79f274409e9 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sat, 28 Feb 2026 20:42:33 +0900 Subject: 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 --- container/fhs/abs.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'container/fhs/abs.go') 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) ) -- cgit v1.3.1