runc: add libpathrs info to --version and features

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
Aleksa Sarai
2026-06-18 10:49:35 +02:00
parent d47bf88349
commit 1e20abef19
7 changed files with 38 additions and 1 deletions
+4
View File
@@ -96,6 +96,10 @@ var featuresCommand = &cli.Command{
feat.Annotations[runcfeatures.AnnotationLibseccompVersion] = fmt.Sprintf("%d.%d.%d", major, minor, patch)
}
if v := pathrsVersionString(); v != "" {
feat.Annotations[runcfeatures.AnnotationLibpathrsVersion] = v
}
enc := json.NewEncoder(cmd.Writer)
enc.SetIndent("", " ")
return enc.Encode(feat)