mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-11-25 18:36:21 -05:00
Split the security-misc into security-misc-shared, security-misc-desktop and security-misc-server: rename files
https://github.com/Kicksecure/security-misc/issues/187
This commit is contained in:
parent
2de10d5b7b
commit
f70550d015
132 changed files with 35 additions and 0 deletions
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/sh
|
||||
|
||||
## Copyright (C) 2023 - 2025 ENCRYPTED SUPPORT LLC <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 remountsecure_action
|
||||
## getarg returns the last parameter only.
|
||||
## If /proc/cmdline contains 'remountsecure=0 remountsecure=1' the last one wins.
|
||||
remountsecure_action=$(getarg remountsecure)
|
||||
|
||||
if ! remount-secure $remountsecure_action; then
|
||||
warn "$0: ERROR: 'remount-secure $remountsecure_action' failed."
|
||||
return 1
|
||||
fi
|
||||
info "$0: INFO: 'remount-secure $remountsecure_action' success."
|
||||
return 0
|
||||
}
|
||||
|
||||
remount_hook
|
||||
Loading…
Add table
Add a link
Reference in a new issue