From e8446c8acbfde8ca7318a3040285b0f62c0c4ce2 Mon Sep 17 00:00:00 2001 From: langsjo <104687438+langsjo@users.noreply.github.com> Date: Sat, 20 Dec 2025 21:44:18 +0200 Subject: [PATCH] breakpointHook: enter the build as nixbld instead of root --- pkgs/by-name/br/breakpointHook/attach.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/by-name/br/breakpointHook/attach.sh b/pkgs/by-name/br/breakpointHook/attach.sh index afc192342fbc..f72e822651fd 100755 --- a/pkgs/by-name/br/breakpointHook/attach.sh +++ b/pkgs/by-name/br/breakpointHook/attach.sh @@ -73,7 +73,7 @@ pwd="$(readlink /proc/$pid/cwd)" # bash needs to be executed with --init-file /build/env-vars to include the bash native # variables like ones declared via `declare -a`. # If another shell is chosen via `debugShell`, it will only have simple env vars avaialable. -exec nsenter --mount --ipc --uts --pid --net --target "$pid" "$bashInteractive" -c " +exec nsenter --mount --ipc --uts --pid --user --setuid follow --setgid follow --net --target "$pid" "$bashInteractive" -c " set -eu -o pipefail source \"$buildDir/env-vars\" cd \"$pwd\"