From 425421d9b1641036d300dc965e597ec6c7648537 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 16 Oct 2025 00:27:00 +0900 Subject: hst/container: rename constants The shim is an implementation detail and should not be mentioned in the API. Signed-off-by: Ophestra --- hst/container.go | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'hst') diff --git a/hst/container.go b/hst/container.go index 08fb8fa4..94017bf8 100644 --- a/hst/container.go +++ b/hst/container.go @@ -27,22 +27,22 @@ const ( ) const ( - // ShimExitFailure is returned if the container fails to start. - ShimExitFailure = iota + 1 - // ShimExitCancel is returned if the container is terminated by a shim-directed signal which cancels its context. - ShimExitCancel - // ShimExitOrphan is returned when the shim is orphaned before priv side delivers a signal. - ShimExitOrphan - - // ShimExitRequest is returned when the priv side process requests shim exit. - ShimExitRequest = 254 + // ExitFailure is returned if the container fails to start. + ExitFailure = iota + 1 + // ExitCancel is returned if the container is terminated by a shim-directed signal which cancels its context. + ExitCancel + // ExitOrphan is returned when the shim is orphaned before priv side delivers a signal. + ExitOrphan + + // ExitRequest is returned when the priv side process requests shim exit. + ExitRequest = 254 ) const ( // FMultiarch unblocks syscalls required for multiarch to work on applicable targets. FMultiarch uintptr = 1 << iota - // FSeccompCompat causes emitted seccomp filter programs to be identical to Flatpak. + // FSeccompCompat changes emitted seccomp filter programs to be identical to that of Flatpak. FSeccompCompat // FDevel unblocks ptrace and friends. FDevel -- cgit v1.3.1