[PATCH master] scripts: container.sh: map to UID/GUID 1000 in container

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The script was inadvertently assuming that the ID of the user executing
it is 1000. This is not necessarily the case for the host system, but we
know it's the case inside the container. Thus map the user account
outside the container to 1000/1000 within the container.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 scripts/container.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/container.sh b/scripts/container.sh
index 6bfb070692f5..1a68f0a5fe01 100755
--- a/scripts/container.sh
+++ b/scripts/container.sh
@@ -40,5 +40,5 @@ fi
 exec podman run -it $volumes --rm \
 	-e TERM -e ARCH -e CONFIG -e JOBS -e LOGDIR -e REGEX \
 	-e KBUILD_OUTPUT -e LG_BUILDDIR \
-	-e KCONFIG_ADD -w "$PWD" --userns=keep-id \
+	-e KCONFIG_ADD -w "$PWD" --userns=keep-id:uid=1000,gid=1000 \
 	-- "$CONTAINER" "${@:-/bin/bash}"
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux