mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-07 00:04:45 +03:00
x11-misc/slock: suidctl compat
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
This commit is contained in:
parent
6b57b43f6d
commit
3f5cb869e5
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user