github.com/opencontainers/runc@v1.2.0-rc.1.0.20240520010911-492dc558cdd6/types/features/features.go (about) 1 // Package features provides the annotations for [github.com/opencontainers/runtime-spec/specs-go/features]. 2 package features 3 4 const ( 5 // AnnotationRuncVersion represents the version of runc, e.g., "1.2.3", "1.2.3+dev", "1.2.3-rc.4.", "1.2.3-rc.4+dev". 6 // Third party implementations such as crun and runsc MAY use this annotation to report the most compatible runc version, 7 // however, parsing this annotation value is discouraged. 8 AnnotationRuncVersion = "org.opencontainers.runc.version" 9 10 // AnnotationRuncCommit corresponds to the output of `git describe --dirty --long --always` in the runc repo. 11 // Third party implementations such as crun and runsc SHOULD NOT use this annotation, as their repo is different from the runc repo. 12 // Parsing this annotation value is discouraged. 13 AnnotationRuncCommit = "org.opencontainers.runc.commit" 14 15 // AnnotationRuncCheckpointEnabled is set to "true" if CRIU-based checkpointing is supported. 16 // Unrelated to whether the host supports CRIU or not. 17 // Always set to "true" in the current version of runc. 18 // This is defined as an annotation because checkpointing is a runc-specific feature that is not defined in the OCI Runtime Spec. 19 // Third party implementations such as crun and runsc MAY use this annotation. 20 AnnotationRuncCheckpointEnabled = "org.opencontainers.runc.checkpoint.enabled" 21 22 // AnnotationLibseccompVersion is the version of libseccomp, e.g., "2.5.1". 23 // Note that the runtime MAY support seccomp even when this annotation is not present. 24 AnnotationLibseccompVersion = "io.github.seccomp.libseccomp.version" 25 )