mirror of
https://github.com/containers/podman.git
synced 2025-11-02 14:55:28 +08:00
In podman 1.* regression on --cap-add
In podman 1.0 if you executed a command like: podman run --user dwalsh --cap-add net_bind_service alpine nc -l 80 It would work, and the user dwalsh would get the capability, in podman 2.0, only root and the binding set gets the capability. This change restores us back to the way podman 1.0 worked. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
This commit is contained in:
3
vendor/github.com/containers/common/pkg/auth/auth.go
generated
vendored
3
vendor/github.com/containers/common/pkg/auth/auth.go
generated
vendored
@ -150,9 +150,6 @@ func getRegistryName(server string) string {
|
||||
// gets the registry from the input. If the input is of the form
|
||||
// quay.io/myuser/myimage, it will parse it and just return quay.io
|
||||
split := strings.Split(server, "/")
|
||||
if len(split) > 1 {
|
||||
return split[0]
|
||||
}
|
||||
return split[0]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user