mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
vendor: update common and buildah
vendor the following dependencies: - https://github.com/containers/common/pull/2375 - https://github.com/containers/buildah/pull/6074 Closes: https://github.com/containers/podman/issues/25634 Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
31
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
31
vendor/github.com/containers/common/pkg/config/default.go
generated
vendored
@@ -8,6 +8,7 @@ import (
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"strings"
|
||||
"sync"
|
||||
|
||||
"github.com/containers/common/internal/attributedstring"
|
||||
nettypes "github.com/containers/common/libnetwork/types"
|
||||
@@ -36,8 +37,8 @@ const (
|
||||
defaultInitName = "catatonit"
|
||||
)
|
||||
|
||||
var (
|
||||
DefaultMaskedPaths = []string{
|
||||
func getMaskedPaths() ([]string, error) {
|
||||
maskedPaths := []string{
|
||||
"/proc/acpi",
|
||||
"/proc/kcore",
|
||||
"/proc/keys",
|
||||
@@ -49,8 +50,34 @@ var (
|
||||
"/sys/devices/virtual/powercap",
|
||||
"/sys/firmware",
|
||||
"/sys/fs/selinux",
|
||||
"/proc/interrupts",
|
||||
}
|
||||
maskedPathsToGlob := []string{
|
||||
"/sys/devices/system/cpu/cpu*/thermal_throttle",
|
||||
}
|
||||
|
||||
for _, p := range maskedPathsToGlob {
|
||||
matches, err := filepath.Glob(p)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
maskedPaths = append(maskedPaths, matches...)
|
||||
}
|
||||
return maskedPaths, nil
|
||||
}
|
||||
|
||||
var DefaultMaskedPaths = sync.OnceValue(func() []string {
|
||||
maskedPaths, err := getMaskedPaths()
|
||||
// this should never happen, the only error possible
|
||||
// is ErrBadPattern and the patterns that were added must be valid
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
return maskedPaths
|
||||
})
|
||||
|
||||
var (
|
||||
DefaultReadOnlyPaths = []string{
|
||||
"/proc/asound",
|
||||
"/proc/bus",
|
||||
|
||||
Reference in New Issue
Block a user