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\"