mirror of
https://github.com/Kicksecure/security-misc.git
synced 2025-05-03 17:54:53 -04:00
Rename file permission hardening script
Hardener as the script is the agent that is hardening the file permissions.
This commit is contained in:
parent
f138cf0f78
commit
abf72c2ee4
24 changed files with 54 additions and 55 deletions
|
@ -6,13 +6,10 @@
|
|||
## https://forums.whonix.org/t/disable-suid-binaries/7706
|
||||
## https://forums.whonix.org/t/re-mount-home-and-other-with-noexec-and-nosuid-among-other-useful-mount-options-for-better-security/7707
|
||||
|
||||
## To undo:
|
||||
## sudo permission-hardening disable
|
||||
|
||||
set -o errexit -o nounset -o pipefail
|
||||
|
||||
exit_code=0
|
||||
store_dir="/var/lib/permission-hardening"
|
||||
store_dir="/var/lib/permission-hardener"
|
||||
dpkg_admindir_parameter_existing_mode="--admindir ${store_dir}/existing_mode"
|
||||
dpkg_admindir_parameter_new_mode="--admindir ${store_dir}/new_mode"
|
||||
|
||||
|
@ -507,6 +504,8 @@ parse_config_folder() {
|
|||
|
||||
shopt -s nullglob
|
||||
for config_file in \
|
||||
/etc/permission-hardener.d/*.conf \
|
||||
/usr/local/etc/permission-hardener.d/*.conf \
|
||||
/etc/permission-hardening.d/*.conf \
|
||||
/usr/local/etc/permission-hardening.d/*.conf
|
||||
do
|
||||
|
@ -620,7 +619,7 @@ spare() {
|
|||
To remove all:
|
||||
$0 disable all
|
||||
|
||||
This change might not be permanent (because of the permission-hardening.service systemd unit). For full instructions, see:
|
||||
This change might not be permanent (because of the permission-hardener.service systemd unit). For full instructions, see:
|
||||
https://www.kicksecure.com/wiki/SUID_Disabler_and_Permission_Hardener
|
||||
|
||||
To view list of changed by SUID Disabler and Permission Hardener:
|
Loading…
Add table
Add a link
Reference in a new issue