mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 19:01:49 +00:00
volume: use the effective uid
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
parent
8f3b2813dc
commit
eee5fa8b8d
@ -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 New Issue
Block a user