mirror of
				https://github.com/optim-enterprises-bv/kubernetes.git
				synced 2025-11-04 04:08:16 +00:00 
			
		
		
		
	Set umask 0022 when building
Some binaries now run as non-root (kube-scheduler). When umask is 0027, for example, the container image we build has the binary 0750, which is not executable by the non-root UID.
This commit is contained in:
		@@ -523,6 +523,10 @@ kube::golang::setup_env() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  # This seems to matter to some tools
 | 
					  # This seems to matter to some tools
 | 
				
			||||||
  export GO15VENDOREXPERIMENT=1
 | 
					  export GO15VENDOREXPERIMENT=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					  # This is for sanity.  Without it, user umasks leak through into release
 | 
				
			||||||
 | 
					  # artifacts.
 | 
				
			||||||
 | 
					  umask 0022
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# This will take binaries from $GOPATH/bin and copy them to the appropriate
 | 
					# This will take binaries from $GOPATH/bin and copy them to the appropriate
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user