mirror of
https://github.com/containers/podman.git
synced 2025-11-30 01:58:46 +08:00
Since this will be required by the runc security update I bump it hare already to make the runc bump easier. Note while there is 0.6.0 out we use 0.5.1 intentionally as 0.6 comes with breaking changes that won't build in our dependencies. Also note the lib now contains code licensed under MPL-2 which is not yet approved by the CNCF[1] but because the runc fix requires it we were advised to just go ahead and update it for now. [1] https://github.com/cncf/foundation/issues/1154 Signed-off-by: Paul Holzinger <pholzing@redhat.com>
49 lines
1.5 KiB
Go
49 lines
1.5 KiB
Go
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
//go:build linux
|
|
|
|
// Copyright (C) 2024-2025 Aleksa Sarai <cyphar@cyphar.com>
|
|
// Copyright (C) 2024-2025 SUSE LLC
|
|
//
|
|
// 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 securejoin
|
|
|
|
import (
|
|
"github.com/cyphar/filepath-securejoin/pathrs-lite"
|
|
)
|
|
|
|
var (
|
|
// MkdirAll is a wrapper around [pathrs.MkdirAll].
|
|
//
|
|
// Deprecated: You should use [pathrs.MkdirAll] directly instead. This
|
|
// wrapper will be removed in filepath-securejoin v0.6.
|
|
MkdirAll = pathrs.MkdirAll
|
|
|
|
// MkdirAllHandle is a wrapper around [pathrs.MkdirAllHandle].
|
|
//
|
|
// Deprecated: You should use [pathrs.MkdirAllHandle] directly instead.
|
|
// This wrapper will be removed in filepath-securejoin v0.6.
|
|
MkdirAllHandle = pathrs.MkdirAllHandle
|
|
|
|
// OpenInRoot is a wrapper around [pathrs.OpenInRoot].
|
|
//
|
|
// Deprecated: You should use [pathrs.OpenInRoot] directly instead. This
|
|
// wrapper will be removed in filepath-securejoin v0.6.
|
|
OpenInRoot = pathrs.OpenInRoot
|
|
|
|
// OpenatInRoot is a wrapper around [pathrs.OpenatInRoot].
|
|
//
|
|
// Deprecated: You should use [pathrs.OpenatInRoot] directly instead. This
|
|
// wrapper will be removed in filepath-securejoin v0.6.
|
|
OpenatInRoot = pathrs.OpenatInRoot
|
|
|
|
// Reopen is a wrapper around [pathrs.Reopen].
|
|
//
|
|
// Deprecated: You should use [pathrs.Reopen] directly instead. This
|
|
// wrapper will be removed in filepath-securejoin v0.6.
|
|
Reopen = pathrs.Reopen
|
|
)
|