From c068619c8a07cf7b9a25bd52c504ada606faf10a Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Fri, 19 Jan 2024 16:29:38 -0600 Subject: [PATCH] nsenter: Do not enter user namespace Running `nsenter` with `-U` fails: ``` nsenter: setns(): can't reassociate to namespace 'user': Invalid argument ``` This is probably because the container runs in the same user namespace as the host anyway, so it really doesn't matter. --- nsenter.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nsenter.sh b/nsenter.sh index 5f20843..f7e4cef 100755 --- a/nsenter.sh +++ b/nsenter.sh @@ -1,3 +1,3 @@ #!/bin/sh -exec nsenter -m -u -i -n -p -U -t 1 "${0##*/}" "$@" +exec nsenter -m -u -i -n -p -t 1 "${0##*/}" "$@"