This commit is contained in:
Patrick Schleizer 2023-10-22 15:27:01 -04:00
parent 3731716a49
commit 9b9e9ce1c0
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -159,7 +159,7 @@ _run() {
_dev() {
mount_folder="/dev"
intended_mount_options="nosuid,${noexec_maybe}"
intended_mount_options="nosuid,noexec"
remount_secure "$@"
}
@ -177,8 +177,7 @@ _tmp() {
_var() {
mount_folder="$NEWROOT/var"
## TODO: nodev? noexec?
intended_mount_options="nosuid"
intended_mount_options="nosuid,nodev${noexec_maybe}"
remount_secure "$@"
}
@ -216,22 +215,21 @@ end() {
exit $exit_code
}
## TODO: need to be tested one by one
main() {
init
parse_options "$@"
_boot
_run
## TODO: ?
#_dev
_dev
_dev_shm
_tmp
_var
_var_tmp
_var_log
## /var implies /var/tmp, /var/log and /var/log/audit
#_var_tmp
#_var_log
_home
end
}