mirror of
				https://github.com/containers/podman.git
				synced 2025-10-31 10:00:01 +08:00 
			
		
		
		
	Vendor in latest containers/psgo code
This fixes a couple of issues with podman top. podman top --latest USER HUSER Now shows you the User inside of the containers usernamespace as well as the user on the host. podman top --latest capeff capbnd Now has headings that differentiatiate between the Capabiltiies. We also have support for ambient capabilities. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #1286 Approved by: vrothberg
This commit is contained in:
		 Daniel J Walsh
					Daniel J Walsh
				
			
				
					committed by
					
						 Atomic Bot
						Atomic Bot
					
				
			
			
				
	
			
			
			 Atomic Bot
						Atomic Bot
					
				
			
						parent
						
							d20f3a5146
						
					
				
				
					commit
					37e3f47ef3
				
			
							
								
								
									
										9
									
								
								vendor/github.com/containers/psgo/internal/proc/ns.go
									
									
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								vendor/github.com/containers/psgo/internal/proc/ns.go
									
									
									
										generated
									
									
										vendored
									
									
								
							| @ -13,3 +13,12 @@ func ParsePIDNamespace(pid string) (string, error) { | ||||
| 	} | ||||
| 	return pidNS, nil | ||||
| } | ||||
|  | ||||
| // ParseUserNamespace returns the content of /proc/$pid/ns/user. | ||||
| func ParseUserNamespace(pid string) (string, error) { | ||||
| 	userNS, err := os.Readlink(fmt.Sprintf("/proc/%s/ns/user", pid)) | ||||
| 	if err != nil { | ||||
| 		return "", err | ||||
| 	} | ||||
| 	return userNS, nil | ||||
| } | ||||
|  | ||||
		Reference in New Issue
	
	Block a user