Make emptyDir volumes work for non-root UIDs
This commit is contained in:
@@ -23,6 +23,7 @@ import (
|
||||
"syscall"
|
||||
|
||||
"github.com/GoogleCloudPlatform/kubernetes/pkg/util/mount"
|
||||
"github.com/docker/libcontainer/selinux"
|
||||
"github.com/golang/glog"
|
||||
)
|
||||
|
||||
@@ -51,3 +52,8 @@ func (m *realMountDetector) GetMountMedium(path string) (storageMedium, bool, er
|
||||
}
|
||||
return mediumUnknown, isMnt, nil
|
||||
}
|
||||
|
||||
// selinuxEnabled determines whether SELinux is enabled.
|
||||
func selinuxEnabled() bool {
|
||||
return selinux.SelinuxEnabled()
|
||||
}
|
||||
|
Reference in New Issue
Block a user