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 ## "/usr/local/etc/permission-hardener.d/20_user.conf" for your custom
## configuration. When security-misc is updated, this file may be overwritten. ## configuration. When security-misc is updated, this file may be overwritten.
## TODO: research ## Used only for SSH host-based authentication
ssh-agent matchwhitelist ## https://linux.die.net/man/8/ssh-keysign
ssh-keysign matchwhitelist ## Needed to allow access to the machine's host key for use in the
/lib/openssh matchwhitelist ## 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