This commit is contained in:
Patrick Schleizer 2023-10-22 15:05:33 -04:00
parent f440209738
commit eb90d38d8c
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -170,13 +170,13 @@ _dev_shm() {
}
_tmp() {
mount_folder="/tmp"
mount_folder="$NEWROOT/tmp"
intended_mount_options="nosuid,nodev${noexec_maybe}"
remount_secure "$@"
}
_var() {
mount_folder="/var"
mount_folder="$NEWROOT/var"
## TODO: nodev? noexec?
intended_mount_options="nosuid"
remount_secure "$@"
@ -189,20 +189,13 @@ _var_tmp() {
}
_var_log() {
mount_folder="/var/log"
intended_mount_options="nosuid,nodev,noexec"
remount_secure "$@"
}
_var_log_audit() {
mount_folder="/var/log/audit"
mount_folder="$NEWROOT/var/log"
intended_mount_options="nosuid,nodev,noexec"
remount_secure "$@"
}
## https://forums.whonix.org/t/re-mount-home-and-other-with-noexec-and-nosuid-among-other-useful-mount-options-for-better-security/7707/25
_lib() {
## TODO: NEWROOT?
mount_folder="$NEWROOT/lib"
## Not using noexec on /lib.
intended_mount_options="nosuid,nodev"
@ -240,10 +233,7 @@ main() {
#_var
_var_tmp
## TODO: ?
#_var_log
#_var_log_audit
_var_log
## TODO: broken?
#_lib