diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2021-02-11 15:26:37 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-11 15:26:37 -0500 |
commit | ddd8a1799dfc1621da39f672a47e9984ebec0e2f (patch) | |
tree | fe64cfa009b2ab10ab688ff334dab73d8e61a42b /libpod/container_internal_linux.go | |
parent | 2b89fe7d5dcf4e2e33127eaefdb02419c42592a6 (diff) | |
parent | e05e53cd2ceeb6df362e4b3764ea23c19b878ff0 (diff) | |
download | podman-ddd8a1799dfc1621da39f672a47e9984ebec0e2f.tar.gz podman-ddd8a1799dfc1621da39f672a47e9984ebec0e2f.tar.bz2 podman-ddd8a1799dfc1621da39f672a47e9984ebec0e2f.zip |
Merge pull request #9327 from mheon/30_final
Bump to v3.0 Final
Diffstat (limited to 'libpod/container_internal_linux.go')
-rw-r--r-- | libpod/container_internal_linux.go | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index ba85a1f47..952cc42d1 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -2261,23 +2261,6 @@ func (c *Container) generatePasswdAndGroup() (string, string, error) { return passwdPath, groupPath, nil } -func (c *Container) copyOwnerAndPerms(source, dest string) error { - info, err := os.Stat(source) - if err != nil { - if os.IsNotExist(err) { - return nil - } - return err - } - if err := os.Chmod(dest, info.Mode()); err != nil { - return err - } - if err := os.Chown(dest, int(info.Sys().(*syscall.Stat_t).Uid), int(info.Sys().(*syscall.Stat_t).Gid)); err != nil { - return err - } - return nil -} - // Get cgroup path in a format suitable for the OCI spec func (c *Container) getOCICgroupPath() (string, error) { unified, err := cgroups.IsCgroup2UnifiedMode() |