abi: do not attempt to setup rootless if euid==0

if the process has already euid==0 do not attempt to setup rootless.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
This commit is contained in:
Giuseppe Scrivano 2020-05-08 16:25:10 +02:00
parent ab518cdba0
commit 817f86c734
No known key found for this signature in database
GPG Key ID: E4730F97F60286ED
1 changed files with 1 additions and 0 deletions

View File

@ -86,6 +86,7 @@ func (ic *ContainerEngine) SetupRootless(_ context.Context, cmd *cobra.Command)
}
}
}
return nil
}
pausePidPath, err := util.GetRootlessPauseProcessPidPath()