kubernetes/pkg/volume
Kubernetes Submit Queue 0f2c6fc7fc Merge pull request #37009 from sjenning/fix-perms-with-fsgroup
Automatic merge from submit-queue (batch tested with PRs 38294, 37009, 36778, 38130, 37835)

fix permissions when using fsGroup

Currently, when an fsGroup is specified, the permissions of the defaultMode are not respected and all files created by the atomic writer have mode 777.  This is because in `SetVolumeOwnership()` the `filepath.Walk` includes the symlinks created by the atomic writer.  The symlinks have mode 777 when read from `info.Mode()`.  However, when the are chmod'ed later, the chmod applies to the file the symlink points to, not the symlink itself, resulting in the wrong mode for the underlying file.

This PR skips chmod/chown for symlinks in the walk since those operations are carried out on the underlying file which will be included elsewhere in the walk.

xref https://bugzilla.redhat.com/show_bug.cgi?id=1384458

@derekwaynecarr @pmorie
2016-12-07 10:45:16 -08:00
..
aws_ebs run hack/update-all.sh 2016-11-23 15:53:09 -08:00
azure_dd run hack/update-all.sh 2016-11-23 15:53:09 -08:00
azure_file run hack/update-all.sh 2016-11-23 15:53:09 -08:00
cephfs test cephfs spec construct function 2016-12-01 13:50:15 +08:00
cinder run hack/update-all.sh 2016-11-23 15:53:09 -08:00
configmap run hack/update-all.sh 2016-11-23 15:53:09 -08:00
downwardapi run hack/update-all.sh 2016-11-23 15:53:09 -08:00
empty_dir run hack/update-all.sh 2016-11-23 15:53:09 -08:00
fc run hack/update-all.sh 2016-11-23 15:53:09 -08:00
flexvolume run hack/update-all.sh 2016-11-23 15:53:09 -08:00
flocker refactor: update bazel, codec, and gofmt 2016-12-03 19:10:53 -05:00
gce_pd run hack/update-all.sh 2016-11-23 15:53:09 -08:00
git_repo run hack/update-all.sh 2016-11-23 15:53:09 -08:00
glusterfs Merge pull request #38137 from obnoxxx/gluster-dp-gid-fix 2016-12-05 19:25:51 -08:00
host_path run hack/update-all.sh 2016-11-23 15:53:09 -08:00
iscsi run hack/update-all.sh 2016-11-23 15:53:09 -08:00
nfs run hack/update-all.sh 2016-11-23 15:53:09 -08:00
photon_pd Fix photon controller plugin to construct with correct PdID 2016-11-23 18:12:03 -08:00
quobyte Fix package aliases to follow golang convention 2016-11-30 15:40:50 +08:00
rbd run hack/update-all.sh 2016-11-23 15:53:09 -08:00
secret run hack/update-all.sh 2016-11-23 15:53:09 -08:00
testing run hack/update-all.sh 2016-11-23 15:53:09 -08:00
util Merge pull request #38124 from kubernetes/Dec/gluster 2016-12-06 16:21:06 -08:00
vsphere_volume Fix for unmount volume to take in volumePath instead of volumeName 2016-11-28 18:21:12 -08:00
BUILD volume pluginsmgr functions test 2016-12-03 23:02:21 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
metrics_cached.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_du.go Collects volume inode stats using the same find command that cadvisor uses these are included in the summary 2016-11-01 10:51:11 -07:00
metrics_du_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_errors.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil.go Disambiguate unsupported metrics from metrics errors 2016-09-15 10:05:30 +10:00
metrics_nil_test.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00
metrics_statfs.go Collects volume inode stats using the same find command that cadvisor uses these are included in the summary 2016-11-01 10:51:11 -07:00
metrics_statfs_test.go MetricsStatfs GetMetrics() function test 2016-11-30 09:46:20 +08:00
OWNERS Update pkg/volume/OWNERS to include Jan Safranek 2016-10-20 12:21:06 -05:00
plugins.go dependencies: pkg/volume 2016-11-23 15:53:09 -08:00
plugins_test.go volume pluginsmgr functions test 2016-12-03 23:02:21 +08:00
util.go dependencies: pkg/volume 2016-11-23 15:53:09 -08:00
util_test.go dependencies: pkg/volume 2016-11-23 15:53:09 -08:00
volume.go dependencies: pkg/volume 2016-11-23 15:53:09 -08:00
volume_linux.go fix permissions when using fsGroup 2016-12-06 14:04:16 -06:00
volume_unsupported.go Remove "All rights reserved" from all the headers. 2016-06-29 17:47:36 -07:00