FS#69285 - [rxvt-unicode] urxvtd doesn't setuid and setgid bits set
Attached to Project:
Community Packages
Opened by Rolf van Kleef (rhbvkleef) - Monday, 11 January 2021, 01:01 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:08 GMT
Opened by Rolf van Kleef (rhbvkleef) - Monday, 11 January 2021, 01:01 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:08 GMT
|
Details
Description:
According to the urxvt(1) manpage and my own testing, marking urxvtd (and perhaps urxvt, although I've not tested this) with setuid and setgid allows terminals to be shown in who and be reached using utmp. This seems like a desired behaviour, but it is not available in the community package. Additional info: * package version: community/rxvt-unicode version 9.22-10 Steps to reproduce: * run urxvtd and then urxvtc, send a wall message, and observe that it doesn't arrive in the terminal. Proposed solution: * Change the mode of urxvt and urxvtd to 6755. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:08 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/rxvt-unicode/issues/1
Saturday, 25 November 2023, 20:08 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/rxvt-unicode/issues/1
```
Index: PKGBUILD
===================================================================
--- PKGBUILD (revision 823822)
+++ PKGBUILD (working copy)
@@ -70,6 +70,8 @@
done
cd ${pkgname}-${pkgver}
+ # allow modifying utmp
+ chmod 6755 "${pkgdir}/usr/bin/urxvt" "${pkgdir}/usr/bin/urxvtd"
# workaround terminfo installation
export TERMINFO="${srcdir}/terminfo"
install -d "${TERMINFO}"
```