From 9c1a5d43bad802aa0ad717ea603c51f7b0408cdd Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 17 Aug 2025 01:43:11 +0900 Subject: container: enforce nonrepeatable autoetc and autoroot These keep track of some internal state, and they don't make sense to have multiple instances of anyway, so instead of dealing with that, just make them nonrepetable. Signed-off-by: Ophestra --- container/ops.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'container/ops.go') diff --git a/container/ops.go b/container/ops.go index efc925b3..a08a12ff 100644 --- a/container/ops.go +++ b/container/ops.go @@ -24,6 +24,11 @@ const ( intermediatePatternTmpfile = "tmp.*" ) +const ( + nrAutoEtc = 1 << iota + nrAutoRoot +) + type ( Ops []Op @@ -41,6 +46,7 @@ type ( } setupState struct { + nonrepeatable uintptr *Params } ) -- cgit v1.3.1