From eee5fa8b8d35a3b786af806fc57e9e7bf6553264 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 14 Jul 2022 09:55:16 +0200 Subject: [PATCH] volume: use the effective uid Signed-off-by: Giuseppe Scrivano --- pkg/volume/volume_linux_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/volume/volume_linux_test.go b/pkg/volume/volume_linux_test.go index 38c3b5b3c7c..a4078879ab4 100644 --- a/pkg/volume/volume_linux_test.go +++ b/pkg/volume/volume_linux_test.go @@ -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") }