libcontainer/userns: migrate to github.com/moby/sys/userns

The userns package was moved to the moby/sys/userns module
at commit 3778ae603c.

This patch deprecates the old location, and adds it as an alias
for the moby/sys/userns package.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn
2024-07-25 11:38:28 +02:00
committed by lfbzhm
parent 8bf5f0d441
commit 9b60a93cf3
20 changed files with 253 additions and 53 deletions
+3 -2
View File
@@ -3,10 +3,11 @@ package main
import (
"os"
"github.com/opencontainers/runc/libcontainer/cgroups/systemd"
"github.com/opencontainers/runc/libcontainer/userns"
"github.com/moby/sys/userns"
"github.com/sirupsen/logrus"
"github.com/urfave/cli"
"github.com/opencontainers/runc/libcontainer/cgroups/systemd"
)
func shouldUseRootlessCgroupManager(context *cli.Context) (bool, error) {