Add GetMode to mounter interface.

Kubelet must not call os.Lstat on raw volume paths when it runs in a container.
Mounter knows where the file really is.
This commit is contained in:
Jan Safranek
2018-05-23 10:17:59 +02:00
parent 23d9a48e6a
commit 97b5299cd7
14 changed files with 72 additions and 6 deletions

View File

@@ -117,6 +117,8 @@ type Interface interface {
// GetSELinuxSupport returns true if given path is on a mount that supports
// SELinux.
GetSELinuxSupport(pathname string) (bool, error)
// GetMode returns permissions of the path.
GetMode(pathname string) (os.FileMode, error)
}
type Subpath struct {