diff options
author | Aditya Rajan <arajan@redhat.com> | 2021-12-07 15:08:52 +0530 |
---|---|---|
committer | Matthew Heon <mheon@redhat.com> | 2021-12-08 13:34:55 -0500 |
commit | db9caa74b79482b362aab180054e69a08c10d3cd (patch) | |
tree | 0c01f426d9806fc11ab66438ec2d245c160bb491 /libpod | |
parent | 2d7c4beffc38f72a49ae2e9d360d8ecc46ea76c5 (diff) | |
download | podman-db9caa74b79482b362aab180054e69a08c10d3cd.tar.gz podman-db9caa74b79482b362aab180054e69a08c10d3cd.tar.bz2 podman-db9caa74b79482b362aab180054e69a08c10d3cd.zip |
volume: apply exact permission of target directory without adding extra 0111
While trying to match permissions of target directory podman adds
extra `0111` which should not be needed if target path does not have
execute permission.
Signed-off-by: Aditya Rajan <arajan@redhat.com>
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/container_internal_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/container_internal_linux.go b/libpod/container_internal_linux.go index 8bd433427..eb05ca423 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -2678,7 +2678,7 @@ func (c *Container) fixVolumePermissions(v *ContainerNamedVolume) error { return err } } - if err := os.Chmod(mountPoint, st.Mode()|0111); err != nil { + if err := os.Chmod(mountPoint, st.Mode()); err != nil { return err } stat := st.Sys().(*syscall.Stat_t) |