mirror of
				https://github.com/k3s-io/kubernetes.git
				synced 2025-10-31 22:01:06 +00:00 
			
		
		
		
	Bump cadvisor dependencies to latest head.
This commit is contained in:
		
							
								
								
									
										11
									
								
								vendor/github.com/opencontainers/runc/libcontainer/system/linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										11
									
								
								vendor/github.com/opencontainers/runc/libcontainer/system/linux.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @@ -100,12 +100,17 @@ func Setctty() error { | ||||
| 	return nil | ||||
| } | ||||
|  | ||||
| // RunningInUserNS detects whether we are currently running in a user namespace. | ||||
| // Copied from github.com/lxc/lxd/shared/util.go | ||||
| /* | ||||
|  * Detect whether we are currently running in a user namespace. | ||||
|  * Copied from github.com/lxc/lxd/shared/util.go | ||||
|  */ | ||||
| func RunningInUserNS() bool { | ||||
| 	file, err := os.Open("/proc/self/uid_map") | ||||
| 	if err != nil { | ||||
| 		// This kernel-provided file only exists if user namespaces are supported | ||||
| 		/* | ||||
| 		 * This kernel-provided file only exists if user namespaces are | ||||
| 		 * supported | ||||
| 		 */ | ||||
| 		return false | ||||
| 	} | ||||
| 	defer file.Close() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user