permission-hardening -> permission-hardener migration

mv --verbose /var/lib/permission-hardening /var/lib/permission-hardener

https://github.com/Kicksecure/security-misc/pull/181
This commit is contained in:
Patrick Schleizer 2024-01-16 08:45:13 -05:00
parent a90cd43631
commit ed7c09fc46
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -15,6 +15,16 @@ true "
#####################################################################
"
permission_hardening_legacy() {
if test -d /var/lib/permission-hardener ; then
return 0
fi
if ! test -d /var/lib/permission-hardening ; then
return 0
fi
mv --verbose /var/lib/permission-hardening /var/lib/permission-hardener
}
permission_hardening() {
echo ""
echo "Running SUID Disabler and Permission Hardener... See also:"
@ -59,6 +69,7 @@ esac
pam-auth-update --package
/usr/libexec/security-misc/permission-lockdown
permission_hardening_legacy
permission_hardening
## https://phabricator.whonix.org/T377