mirror of
https://github.com/containers/podman.git
synced 2025-06-17 23:20:59 +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
|
||||
backendType := ""
|
||||
if os.Geteuid() != 0 {
|
||||
if rootless.IsRootless() {
|
||||
backendType = "none"
|
||||
}
|
||||
fwBackend, err := firewall.GetBackend(backendType)
|
||||
|
Reference in New Issue
Block a user