x11-misc/slock: suidctl compat

Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
Mike Gilbert 2025-11-30 21:18:35 -05:00
parent 6b57b43f6d
commit 3f5cb869e5
No known key found for this signature in database
GPG Key ID: 7E58A298F42F9CCD

View File

@ -43,6 +43,7 @@ src_prepare() {
src_install() {
dobin slock
fperms u+s /usr/bin/slock
doman slock.1
save_config config.h
}
@ -51,9 +52,9 @@ pkg_postinst() {
# cap_dac_read_search used to be enough for shadow access
# but now slock wants to write to /proc/self/oom_score_adj
# and for that it needs:
fcaps -m u+s \
fcaps -M u-s \
cap_dac_override,cap_setgid,cap_setuid,cap_sys_resource \
/usr/bin/slock
usr/bin/slock
savedconfig_pkg_postinst
}