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