diff options
author | Aditya Rajan <arajan@redhat.com> | 2021-12-07 15:08:52 +0530 |
---|---|---|
committer | Aditya Rajan <arajan@redhat.com> | 2021-12-07 15:42:12 +0530 |
commit | 7d0fd175f1bcb6bb2bb9ccb83426f35c001599b2 (patch) | |
tree | 894155d3477fafea07f84697bc8d69f661b7e8d3 /libpod | |
parent | 7d290b3f6245d2bc68e3cb689c5b3252561ae566 (diff) | |
download | podman-7d0fd175f1bcb6bb2bb9ccb83426f35c001599b2.tar.gz podman-7d0fd175f1bcb6bb2bb9ccb83426f35c001599b2.tar.bz2 podman-7d0fd175f1bcb6bb2bb9ccb83426f35c001599b2.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 956460c32..f3774a64f 100644 --- a/libpod/container_internal_linux.go +++ b/libpod/container_internal_linux.go @@ -2784,7 +2784,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) |