Skip to content

Commit c6d198e

Browse files
committed
abi: drop check for IsRootless()
it is the wrong check to do here since we need to setup the user namespace even in the case we are running as root without capabilities. [NO NEW TESTS NEEDED] this happens in nested podman Closes: containers#20908 Signed-off-by: Giuseppe Scrivano <[email protected]> (cherry picked from commit 1322f31)
1 parent b2d2261 commit c6d198e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/domain/infra/abi/system.go

-4
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,6 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, noMoveProcess bool)
7878
}
7979
}
8080

81-
if !rootless.IsRootless() {
82-
return nil
83-
}
84-
8581
// do it only after podman has already re-execed and running with uid==0.
8682
hasCapSysAdmin, err := unshare.HasCapSysAdmin()
8783
if err != nil {

0 commit comments

Comments
 (0)