mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-07-13 01:09:16 +07:00
implement remount-secure
This commit is contained in:
@ -3,15 +3,22 @@
|
||||
## Copyright (C) 2023 - 2023 ENCRYPTED SUPPORT LP <adrelanos@whonix.org>
|
||||
## See the file COPYING for copying conditions.
|
||||
|
||||
## This script is intended to remount specified mount points with more secure
|
||||
## options based on kernel command line parameters.
|
||||
|
||||
remount_hook() {
|
||||
local remount_action
|
||||
remount_action=$(getarg remountsecure)
|
||||
|
||||
if [ ! "$remount_action" = "yes" ]; then
|
||||
if getargbool 1 remountnoexec; then
|
||||
remount-secure --remountnoexec
|
||||
return 0
|
||||
fi
|
||||
|
||||
remount-secure
|
||||
if getargbool 1 remountsecure; then
|
||||
remount-secure
|
||||
return 0
|
||||
fi
|
||||
}
|
||||
|
||||
remount_hook
|
||||
|
Reference in New Issue
Block a user