mirror of
https://github.com/containers/podman.git
synced 2025-06-19 00:06:43 +08:00
Merge pull request #6775 from vrothberg/vendor-common
vendor github.com/containers/common@v0.14.3
This commit is contained in:
2
go.mod
2
go.mod
@ -11,7 +11,7 @@ require (
|
||||
github.com/containernetworking/cni v0.7.2-0.20200304161608-4fae32b84921
|
||||
github.com/containernetworking/plugins v0.8.6
|
||||
github.com/containers/buildah v1.15.0
|
||||
github.com/containers/common v0.14.0
|
||||
github.com/containers/common v0.14.3
|
||||
github.com/containers/conmon v2.0.18+incompatible
|
||||
github.com/containers/image/v5 v5.5.1
|
||||
github.com/containers/psgo v1.5.1
|
||||
|
2
go.sum
2
go.sum
@ -70,6 +70,8 @@ github.com/containers/buildah v1.15.0 h1:p9cYJwcQ5Fnv0iBeHAFwHR0K+kcv7LbyAjUtc+H
|
||||
github.com/containers/buildah v1.15.0/go.mod h1:j0AY2kWpmaOPPV5GKDJY9dMtekk5WMmMhcB+z0OW+vc=
|
||||
github.com/containers/common v0.14.0 h1:hiZFDPf6ajKiDmojN5f5X3gboKPO73NLrYb0RXfrQiA=
|
||||
github.com/containers/common v0.14.0/go.mod h1:9olhlE+WhYof1npnMJdyRMX14/yIUint6zyHzcyRVAg=
|
||||
github.com/containers/common v0.14.3 h1:LNsRPkap5Q/EqPyhiLKRZg8u629U8CEeoB49ilG6ZR4=
|
||||
github.com/containers/common v0.14.3/go.mod h1:9olhlE+WhYof1npnMJdyRMX14/yIUint6zyHzcyRVAg=
|
||||
github.com/containers/conmon v2.0.18+incompatible h1:rjwjNnE756NuXcdE/uUmj4kDbrykslPuBMHI31wh43E=
|
||||
github.com/containers/conmon v2.0.18+incompatible/go.mod h1:hgwZ2mtuDrppv78a/cOBNiCm6O0UMWGx1mu7P00nu5I=
|
||||
github.com/containers/image/v5 v5.4.4/go.mod h1:g7cxNXitiLi6pEr9/L9n/0wfazRuhDKXU15kV86N8h8=
|
||||
|
6
vendor/github.com/containers/common/pkg/apparmor/apparmor.go
generated
vendored
6
vendor/github.com/containers/common/pkg/apparmor/apparmor.go
generated
vendored
@ -2,14 +2,16 @@ package apparmor
|
||||
|
||||
import (
|
||||
"errors"
|
||||
|
||||
"github.com/containers/common/version"
|
||||
)
|
||||
|
||||
const (
|
||||
// ProfilePrefix is used for version-independent presence checks.
|
||||
ProfilePrefix = "apparmor_profile"
|
||||
ProfilePrefix = "containers-default-"
|
||||
|
||||
// Profile default name
|
||||
Profile = "container-default"
|
||||
Profile = ProfilePrefix + version.Version
|
||||
)
|
||||
|
||||
var (
|
||||
|
9
vendor/github.com/containers/common/pkg/apparmor/apparmor_linux.go
generated
vendored
9
vendor/github.com/containers/common/pkg/apparmor/apparmor_linux.go
generated
vendored
@ -255,9 +255,11 @@ func CheckProfileAndLoadDefault(name string) (string, error) {
|
||||
}
|
||||
}
|
||||
|
||||
// If the specified name is not empty or is not a default libpod one,
|
||||
// ignore it and return the name.
|
||||
if name != "" && !strings.HasPrefix(name, ProfilePrefix) {
|
||||
if name == "" {
|
||||
name = Profile
|
||||
} else if !strings.HasPrefix(name, ProfilePrefix) {
|
||||
// If the specified name is not a default one, ignore it and return the
|
||||
// name.
|
||||
isLoaded, err := IsLoaded(name)
|
||||
if err != nil {
|
||||
return "", err
|
||||
@ -268,7 +270,6 @@ func CheckProfileAndLoadDefault(name string) (string, error) {
|
||||
return name, nil
|
||||
}
|
||||
|
||||
name = Profile
|
||||
// To avoid expensive redundant loads on each invocation, check
|
||||
// if it's loaded before installing it.
|
||||
isLoaded, err := IsLoaded(name)
|
||||
|
6
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
6
vendor/github.com/containers/common/pkg/config/config.go
generated
vendored
@ -822,6 +822,7 @@ func stringsEq(a, b []string) bool {
|
||||
|
||||
var (
|
||||
configOnce sync.Once
|
||||
configErr error
|
||||
config *Config
|
||||
)
|
||||
|
||||
@ -837,11 +838,10 @@ var (
|
||||
// The system defaults container config files can be overwritten using the
|
||||
// CONTAINERS_CONF environment variable. This is usually done for testing.
|
||||
func Default() (*Config, error) {
|
||||
var err error
|
||||
configOnce.Do(func() {
|
||||
config, err = NewConfig("")
|
||||
config, configErr = NewConfig("")
|
||||
})
|
||||
return config, err
|
||||
return config, configErr
|
||||
}
|
||||
|
||||
func Path() string {
|
||||
|
4
vendor/github.com/containers/common/version/version.go
generated
vendored
Normal file
4
vendor/github.com/containers/common/version/version.go
generated
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
package version
|
||||
|
||||
// Version is the version of the build.
|
||||
const Version = "0.14.3"
|
3
vendor/modules.txt
vendored
3
vendor/modules.txt
vendored
@ -84,13 +84,14 @@ github.com/containers/buildah/pkg/secrets
|
||||
github.com/containers/buildah/pkg/supplemented
|
||||
github.com/containers/buildah/pkg/umask
|
||||
github.com/containers/buildah/util
|
||||
# github.com/containers/common v0.14.0
|
||||
# github.com/containers/common v0.14.3
|
||||
github.com/containers/common/pkg/apparmor
|
||||
github.com/containers/common/pkg/auth
|
||||
github.com/containers/common/pkg/capabilities
|
||||
github.com/containers/common/pkg/cgroupv2
|
||||
github.com/containers/common/pkg/config
|
||||
github.com/containers/common/pkg/sysinfo
|
||||
github.com/containers/common/version
|
||||
# github.com/containers/conmon v2.0.18+incompatible
|
||||
github.com/containers/conmon/runner/config
|
||||
# github.com/containers/image/v5 v5.5.1
|
||||
|
Reference in New Issue
Block a user