mirror of
https://github.com/containers/podman.git
synced 2025-12-02 02:58:03 +08:00
Do not report that /usr/share/containers/storage.conf has been edited.
Only want to report if user created local customized storage in /etc/containers/storage.conf or in $HOME/.config/containers/storage.conf, when resetting storage. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
9
vendor/github.com/containers/buildah/copier/copier.go
generated
vendored
9
vendor/github.com/containers/buildah/copier/copier.go
generated
vendored
@@ -22,6 +22,7 @@ import (
|
||||
|
||||
"github.com/containers/buildah/util"
|
||||
"github.com/containers/image/v5/pkg/compression"
|
||||
"github.com/containers/storage/pkg/archive"
|
||||
"github.com/containers/storage/pkg/fileutils"
|
||||
"github.com/containers/storage/pkg/idtools"
|
||||
"github.com/containers/storage/pkg/reexec"
|
||||
@@ -1462,6 +1463,10 @@ func copierHandlerGetOne(srcfi os.FileInfo, symlinkTarget, name, contentPath str
|
||||
hdr.Mode = int64(*options.ChmodFiles)
|
||||
}
|
||||
}
|
||||
// read fflags, if any
|
||||
if err := archive.ReadFileFlagsToTarHeader(contentPath, hdr); err != nil {
|
||||
return fmt.Errorf("getting fflags: %w", err)
|
||||
}
|
||||
var f *os.File
|
||||
if hdr.Typeflag == tar.TypeReg {
|
||||
// open the file first so that we don't write a header for it if we can't actually read it
|
||||
@@ -1889,6 +1894,10 @@ func copierHandlerPut(bulkReader io.Reader, req request, idMappings *idtools.IDM
|
||||
if err = lutimes(hdr.Typeflag == tar.TypeSymlink, path, hdr.AccessTime, hdr.ModTime); err != nil {
|
||||
return fmt.Errorf("setting access and modify timestamps on %q to %s and %s: %w", path, hdr.AccessTime, hdr.ModTime, err)
|
||||
}
|
||||
// set fflags if supported
|
||||
if err := archive.WriteFileFlagsFromTarHeader(path, hdr); err != nil {
|
||||
return fmt.Errorf("copier: put: error setting fflags on %q: %w", path, err)
|
||||
}
|
||||
nextHeader:
|
||||
hdr, err = tr.Next()
|
||||
}
|
||||
|
||||
4
vendor/github.com/containers/buildah/run_freebsd.go
generated
vendored
4
vendor/github.com/containers/buildah/run_freebsd.go
generated
vendored
@@ -253,10 +253,6 @@ func (b *Builder) Run(command []string, options RunOptions) error {
|
||||
jconf.Set("devfs_ruleset", 4)
|
||||
jconf.Set("allow.raw_sockets", true)
|
||||
jconf.Set("allow.chflags", true)
|
||||
jconf.Set("allow.mount", true)
|
||||
jconf.Set("allow.mount.devfs", true)
|
||||
jconf.Set("allow.mount.nullfs", true)
|
||||
jconf.Set("allow.mount.fdescfs", true)
|
||||
jconf.Set("securelevel", -1)
|
||||
netjail, err := jail.Create(jconf)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user