diff --git a/pkg/unshare/unshare_linux.go b/pkg/unshare/unshare_linux.go index 3fc36201c5..c26dedb398 100644 --- a/pkg/unshare/unshare_linux.go +++ b/pkg/unshare/unshare_linux.go @@ -448,7 +448,7 @@ type Runnable interface { // MaybeReexecUsingUserNamespace re-exec the process in a new namespace func MaybeReexecUsingUserNamespace(evenForRoot bool) { // If we've already been through this once, no need to try again. - if os.Geteuid() == 0 && IsRootless() { + if os.Geteuid() == 0 && GetRootlessUID() > 0 { return }