fix postinst for new permission-hardener

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

View File

@ -20,8 +20,8 @@ permission_hardening() {
echo "Running SUID Disabler and Permission Hardener... See also:"
echo "https://www.kicksecure.com/wiki/SUID_Disabler_and_Permission_Hardener"
echo ""
echo "$0: INFO: running: permission-hardener"
if ! permission-hardener ; then
echo "$0: INFO: running: permission-hardener enable"
if ! permission-hardener enable ; then
echo "$0: ERROR: Permission hardening failed." >&2
return 0
fi
@ -59,7 +59,7 @@ esac
pam-auth-update --package
/usr/libexec/security-misc/permission-lockdown
permission_hardener
permission_hardening
## https://phabricator.whonix.org/T377
## Debian has no update-grub trigger yet: