mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-03 19:58:17 +00:00 
			
		
		
		
	retain read only root file system in determineEffectiveSecurityContext
This commit is contained in:
		@@ -159,6 +159,11 @@ func DetermineEffectiveSecurityContext(pod *api.Pod, container *api.Container) *
 | 
			
		||||
		*effectiveSc.RunAsNonRoot = *containerSc.RunAsNonRoot
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if containerSc.ReadOnlyRootFilesystem != nil {
 | 
			
		||||
		effectiveSc.ReadOnlyRootFilesystem = new(bool)
 | 
			
		||||
		*effectiveSc.ReadOnlyRootFilesystem = *containerSc.ReadOnlyRootFilesystem
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	return effectiveSc
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user