permission hardener: disable SUID for ssh-agent, ssh-keysign, /lib/openssh/*

This might break SSH host-based authentication.
This commit is contained in:
Patrick Schleizer 2025-01-14 04:06:44 -05:00
parent d89ffcde30
commit 7a5f8b87af
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -5,7 +5,11 @@
## "/usr/local/etc/permission-hardener.d/20_user.conf" for your custom
## configuration. When security-misc is updated, this file may be overwritten.
## TODO: research
ssh-agent matchwhitelist
ssh-keysign matchwhitelist
/lib/openssh matchwhitelist
## Used only for SSH host-based authentication
## https://linux.die.net/man/8/ssh-keysign
## Needed to allow access to the machine's host key for use in the
## authentication process. This is a non-default method of authenticating to
## SSH, and is likely rarely used, thus this should be safe to disable.
#ssh-agent matchwhitelist
#ssh-keysign matchwhitelist
#/lib/openssh matchwhitelist