Skip to content

runc features and runc -v should expose libpathrs version #5174

Closed

Description

@AkihiroSuda

runc features should expose annotations related to libpathrs (i.e., whether it is enabled or not, and, its version)

Similar to:

// AnnotationRuncCheckpointEnabled is set to "true" if CRIU-based checkpointing is supported.
// Unrelated to whether the host supports CRIU or not.
// Always set to "true" in the current version of runc.
// This is defined as an annotation because checkpointing is a runc-specific feature that is not defined in the OCI Runtime Spec.
// Third party implementations such as crun and runsc MAY use this annotation.
AnnotationRuncCheckpointEnabled = "org.opencontainers.runc.checkpoint.enabled"
// AnnotationLibseccompVersion is the version of libseccomp, e.g., "2.5.1".
// Note that the runtime MAY support seccomp even when this annotation is not present.
AnnotationLibseccompVersion = "io.github.seccomp.libseccomp.version"

It should be printed in runc --version too

runc/main.go

Line 52 in 5c48e21

fmt.Fprintf(w, "libseccomp: %d.%d.%d\n", major, minor, micro)

Activity

  1. changed the title [-]`runc features` should expose annotations related to libpathrs[/-] [+]`runc features` and `runc -v` should expose annotations related to libpathrs[/+] on Mar 14, 2026
  2. changed the title [-]`runc features` and `runc -v` should expose annotations related to libpathrs[/-] [+]`runc features` and `runc -v` should expose libpathrs version[/+] on Mar 14, 2026
  3. cyphar commented on Mar 15, 2026

    @cyphar
    Member

    Yeah I agree, I will add an API to libpathrs to get the libpathrs version (akin to what libseccomp does). I wanted to avoid too many libpathrs-specific changes in the libpathrs PR (right now we don't even directly import it).

    The only question is what to do for current libpathrs versions, we can do dlopen on /proc/self/exe to try to find the symbol or just bump the minimum version requirement...

  4. AkihiroSuda commented on Mar 15, 2026

    @AkihiroSuda
    MemberAuthor

    just bump the minimum version requirement...

    This seems fine, as no distro except tumbleweed has packaged it yet
    https://pkgs.org/search/?q=pathrs

  5. added this to the 1.5.0 milestone on Mar 15, 2026
  6. AkihiroSuda commented on Apr 25, 2026

    @AkihiroSuda
    MemberAuthor
  7. linked a pull request that will close this issuedeps: update to libpathrs 0.2.5 #5291on Jun 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions