diff options
author | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-07-12 11:47:30 +0200 |
---|---|---|
committer | Giuseppe Scrivano <gscrivan@redhat.com> | 2022-07-13 09:13:06 +0200 |
commit | 7b4afbf621a787ead00ae83bdaebabeec3b0c707 (patch) | |
tree | 35ca08bdb00348660230edb05acb78f4873daa3b /pkg | |
parent | 16b8d77f9ef5a06b90d1507fff1f9c21fbbcd0cb (diff) | |
download | podman-7b4afbf621a787ead00ae83bdaebabeec3b0c707.tar.gz podman-7b4afbf621a787ead00ae83bdaebabeec3b0c707.tar.bz2 podman-7b4afbf621a787ead00ae83bdaebabeec3b0c707.zip |
podman: always call into SetupRootless
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/domain/infra/abi/system.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/domain/infra/abi/system.go b/pkg/domain/infra/abi/system.go index 0faae01c8..eed80dd79 100644 --- a/pkg/domain/infra/abi/system.go +++ b/pkg/domain/infra/abi/system.go @@ -67,6 +67,10 @@ func (ic *ContainerEngine) Info(ctx context.Context) (*define.Info, error) { } func (ic *ContainerEngine) SetupRootless(_ context.Context, noMoveProcess bool) error { + 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 { |