sys-libs/pam: give unix_chkpwd CAP_DAC_READ_SEARCH

CAP_DAC_OVERRIDE is overkill; we only need read access to /etc/shadow.

Closes: https://bugs.gentoo.org/963110
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert
2025-10-01 16:20:24 -04:00
parent 6e3c2ba940
commit 048e077ddc

View File

@@ -187,5 +187,5 @@ pkg_postinst() {
# The pam_unix module needs to check the password of the user which requires
# read access to /etc/shadow only.
fcaps -m u+s cap_dac_override sbin/unix_chkpwd
fcaps -m u+s cap_dac_read_search sbin/unix_chkpwd
}