mirror of https://github.com/containers/podman.git
Merge pull request #1686 from mheon/rootless_firewall
Use more reliable check for rootless for firewall init
This commit is contained in:
commit
02a76a82b6
|
@ -508,7 +508,7 @@ func makeRuntime(runtime *Runtime) (err error) {
|
|||
|
||||
// Set up a firewall backend
|
||||
backendType := ""
|
||||
if os.Geteuid() != 0 {
|
||||
if rootless.IsRootless() {
|
||||
backendType = "none"
|
||||
}
|
||||
fwBackend, err := firewall.GetBackend(backendType)
|
||||
|
|
Loading…
Reference in New Issue