Changes between Initial Version and Version 1 of Ticket #52257, comment 1


Ignore:
Timestamp:
Sep 20, 2016, 9:14:19 PM (8 years ago)
Author:
RJVB (René Bertin)
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #52257, comment 1

    initial v1  
    11I've been hacking some more at getting privileged DBus helpers to work, for instance the one in `port:kf5-libksysguard` that is used to control process priority or to send signals to processes running with a different UID.
    22
    3 With the attached patch libdbus will now accept to run setuid, have a better chance at finding the session bus socket when run through sudo if the following line is added to /etc/sudoers (using `visudo` evidently):
    4 
    5 {{{
    6 Defaults        env_keep += "DBUS_LAUNCHD_SESSION_BUS_SOCKET"
    7 }}}
    8 
    9 and privileged workers actually seem to work if the system dbus is running and one has used the following magic formula at least once in the current login session:
    10 
    11 {{{
    12 sudo launchctl setenv DBUS_LAUNCHD_SESSION_BUS_SOCKET $DBUS_LAUNCHD_SESSION_BUS_SOCKET
    13 }}}
     3Edit: removed description of obsolete hacks.