Merge pull request #21017 from giuseppe/fix-podman-info-twice

abi: drop check for IsRootless()
This commit is contained in:
openshift-merge-bot[bot] 2023-12-18 20:32:59 +00:00 committed by GitHub
commit 26bcffd7a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -30,10 +30,6 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, noMoveProcess bool)
}
}
if !rootless.IsRootless() {
return nil
}
// do it only after podman has already re-execed and running with uid==0.
hasCapSysAdmin, err := unshare.HasCapSysAdmin()
if err != nil {