Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
http://forums.whonix.org/t/hardened-malloc-hardened-memory-allocator/7474/116 Thanks to @madaidan for the suggestion!
- Loading branch information
Patrick Schleizer
committed
Oct 11, 2020
1 parent
a64bb8c
commit d13cd5a
Showing
3 changed files
with
41 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
ld-system-preload-disable(8) -- disable /etc/ld.so.preload per application | ||
============================================= | ||
|
||
<span class="comment"> | ||
# Copyright (C) 2020 - 2020 ENCRYPTED SUPPORT LP <adrelanos@riseup.net> | ||
# See the file COPYING for copying conditions. | ||
</span> | ||
|
||
## SYNOPSIS | ||
|
||
ld-system-preload-disable command | ||
|
||
## DESCRIPTION | ||
|
||
Uses brwap to hide /etc/ld.so.preload from application so it will be ignored. | ||
|
||
Does not modify LD_PRELOAD environment variable. | ||
|
||
Prepend ld-system-preload-disable in front of the actual application / command | ||
intended to be run. | ||
|
||
## RETURN VALUES | ||
|
||
Returns what application returns. | ||
|
||
## AUTHOR | ||
|
||
This man page has been written by Patrick Schleizer (adrelanos@riseup.net). |
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,8 @@ | ||
#!/bin/bash | ||
|
||
## Copyright (C) 2020 - 2020 ENCRYPTED SUPPORT LP <adrelanos@riseup.net> | ||
## See the file COPYING for copying conditions. | ||
|
||
## This fails if file /etc/ld.so.preload does not exists. | ||
## bwrap: Can't create file at /etc/ld.so.preload: Permission denied | ||
bwrap --dev-bind / / --ro-bind /dev/null /etc/ld.so.preload "${@}" |