diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-07-18 23:18:26 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-07-18 23:18:26 +0900 |
| commit | 9d7a19d162e7003ce89804f00c526b77b2328baa (patch) | |
| tree | 115badd81cd1824cfc58bb0c573a210dd5209d73 /container/container.go | |
| parent | 6ba19a7ba5c36a4276dceeab9a5d158c5d9738a0 (diff) | |
container: use more reliable nonexistence
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'container/container.go')
| -rw-r--r-- | container/container.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/container/container.go b/container/container.go index 8001673a..ecfb94cc 100644 --- a/container/container.go +++ b/container/container.go @@ -17,6 +17,12 @@ import ( "hakurei.app/container/seccomp" ) +const ( + // Nonexistent is a path that cannot exist. + // /proc is chosen because a system with covered /proc is unsupported by this package. + Nonexistent = "/proc/nonexistent" +) + type ( // Container represents a container environment being prepared or run. // None of [Container] methods are safe for concurrent use. |
