mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
aba980f436
This update includes a few breaking API changes that I needed to get in
before an actual runc release depends on it, so that we don't need to
deal with compatibility shims for them (or bumping the SOVERSION).
From a Go API perspective, there were no major changes -- though this
bump did also require a bump to github.com/cyphar/filepath-securejoin
because one of the wrapped APIs changed from int to uint64 as a flag
argument type. Again, better to get this done before we really depend on
this in a public way.
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
(cherry picked from commit d47bf88349)
Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
28 lines
841 B
Go
28 lines
841 B
Go
//go:build linux
|
|
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
/*
|
|
* libpathrs: safe path resolution on Linux
|
|
* Copyright (C) 2026 Aleksa Sarai <cyphar@cyphar.com>
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
package pathrs
|
|
|
|
import (
|
|
"cyphar.com/go-pathrs/internal/libpathrs"
|
|
)
|
|
|
|
// LibraryVersionInfo contains information about the version and features
|
|
// supported by the underlying libpathrs.so library at runtime.
|
|
type LibraryVersionInfo = libpathrs.VersionInfo
|
|
|
|
// LibraryVersion returns information about the version and features supported
|
|
// by the underlying libpathrs.so library at runtime.
|
|
func LibraryVersion() (*LibraryVersionInfo, error) {
|
|
return libpathrs.Version()
|
|
}
|