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