forked from GrapheneOS/hardened_malloc
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: allow hardened malloc to be used by
setuid
programs
- no longer use full path names to hardened malloc library - `set-user-id` hardened malloc library (`setuid`) credit to @SkewedZeppelin for research: https://gist.github.com/SkewedZeppelin/7f293d64c1c651bdc21526519d9e192b https://forums.whonix.org/t/hardened-malloc-hardened-memory-allocator/7474/224
- Loading branch information
Showing
4 changed files
with
70 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
## Copyright (C) 2020 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org> | ||
## See the file COPYING for copying conditions. | ||
|
||
if [ -f /usr/libexec/helper-scripts/pre.bsh ]; then | ||
source /usr/libexec/helper-scripts/pre.bsh | ||
fi | ||
|
||
set -e | ||
|
||
true " | ||
##################################################################### | ||
## INFO: BEGIN: $DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME $@ | ||
##################################################################### | ||
" | ||
|
||
chmod u+s /lib/x86_64-linux-gnu/libhardened_malloc.so | ||
chmod u+s /lib/x86_64-linux-gnu/libhardened_malloc-light.so | ||
|
||
true "INFO: debhelper beginning here." | ||
|
||
#DEBHELPER# | ||
|
||
true "INFO: Done with debhelper." | ||
|
||
true " | ||
##################################################################### | ||
## INFO: END : $DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME $@ | ||
##################################################################### | ||
" | ||
|
||
## Explicitly "exit 0", so eventually trapped errors can be ignored. | ||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters