diff --git a/Makefile b/Makefile index 18ff378..4e2c375 100644 --- a/Makefile +++ b/Makefile @@ -219,7 +219,7 @@ TOOLCHAIN_WORKDIR := /home/build define toolchain docker run \ --rm \ - --tty \ + --tty \ $(2) \ --env UID=$(UID) \ --env GID=$(GID) \ diff --git a/scripts/host-env b/scripts/host-env index 8c71cb7..2c6d91b 100755 --- a/scripts/host-env +++ b/scripts/host-env @@ -17,8 +17,10 @@ export HOME="/home/${user}" -u "$uid" \ -d "/home/${user}" \ -s /bin/bash \ - "${user}" + "${user}" setpriv --reuid="$uid" --regid="$gid" --init-groups "$@" } exec "$@" + +