mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-10-31 18:28:13 +00:00 
			
		
		
		
	volume: use the effective uid
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
		| @@ -342,7 +342,7 @@ func verifyDirectoryPermission(path string, readonly bool) bool { | |||||||
|  |  | ||||||
| func TestSetVolumeOwnershipOwner(t *testing.T) { | func TestSetVolumeOwnershipOwner(t *testing.T) { | ||||||
| 	fsGroup := int64(3000) | 	fsGroup := int64(3000) | ||||||
| 	currentUid := os.Getuid() | 	currentUid := os.Geteuid() | ||||||
| 	if currentUid != 0 { | 	if currentUid != 0 { | ||||||
| 		t.Skip("running as non-root") | 		t.Skip("running as non-root") | ||||||
| 	} | 	} | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Giuseppe Scrivano
					Giuseppe Scrivano