[MacPorts] #52257: dbus-daemon-launch-helper should be setuid root
MacPorts
noreply at macports.org
Sat Sep 17 21:59:48 CEST 2016
#52257: dbus-daemon-launch-helper should be setuid root
--------------------------+--------------------------------
Reporter: rjvbertin@… | Owner: macports-tickets@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Resolution: | Keywords:
Port: dbus |
--------------------------+--------------------------------
Comment (by rjvbertin@…):
I'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.
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):
{{{
Defaults env_keep += "DBUS_LAUNCHD_SESSION_BUS_SOCKET"
}}}
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:
{{{
sudo launchctl setenv DBUS_LAUNCHD_SESSION_BUS_SOCKET
$DBUS_LAUNCHD_SESSION_BUS_SOCKET
}}}
--
Ticket URL: <https://trac.macports.org/ticket/52257#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list