mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-05-28 04:04:39 -04:00
volume: use the effective uid
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
8f3b2813dc
commit
eee5fa8b8d
1 changed files with 1 additions and 1 deletions
|
|
@ -342,7 +342,7 @@ func verifyDirectoryPermission(path string, readonly bool) bool {
|
|||
|
||||
func TestSetVolumeOwnershipOwner(t *testing.T) {
|
||||
fsGroup := int64(3000)
|
||||
currentUid := os.Getuid()
|
||||
currentUid := os.Geteuid()
|
||||
if currentUid != 0 {
|
||||
t.Skip("running as non-root")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue