mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-27 10:47:54 +00:00
Merge pull request #1686 from mheon/rootless_firewall
Use more reliable check for rootless for firewall init
This commit is contained in:
commit
02a76a82b6
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue