diff options
author | Baitinq <manuelpalenzuelamerino@gmail.com> | 2022-11-23 21:01:11 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-14 14:38:13 +0000 |
commit | 88c9e4f3b07c8ac19202360bcbcce27fa9a641d6 (patch) | |
tree | 9e37e43b66a04ce6444b1596b3d2396ad6f91034 /Meta/build-image-limine.sh | |
parent | 7a51e846b204c0bc263adc473344e8976f62a8c6 (diff) | |
download | serenity-88c9e4f3b07c8ac19202360bcbcce27fa9a641d6.zip |
Meta: Don't depend on sudo for privileged operations
We previously depended on sudo's specific -E flag to keep all the
environment variables when performing a privilege escalation. We now
incorporate the -E flag into the $SUDO variable, allowing for other
privilege escalation binaries (such as doas) to be used (as long as
they preserve the current environment variables).
Diffstat (limited to 'Meta/build-image-limine.sh')
-rwxr-xr-x | Meta/build-image-limine.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Meta/build-image-limine.sh b/Meta/build-image-limine.sh index 94787a2740..f3bd996c86 100755 --- a/Meta/build-image-limine.sh +++ b/Meta/build-image-limine.sh @@ -17,7 +17,7 @@ fi if [ "$(id -u)" != 0 ]; then set +e - ${SUDO} -E -- sh -c "\"$0\" $* || exit 42" + ${SUDO} -- sh -c "\"$0\" $* || exit 42" case $? in 1) die "this script needs to run as root" |