Bug#765101: systemd: systemctl -t <...> fails to list units, access denied
Dominique Brazziel
dbrazziel at snet.net
Mon Oct 13 17:12:21 BST 2014
Package: systemd
Version: 215-5+b1
Severity: normal
When running as non-root, systemctl -t {...} (i.e. systemctl -t socket)
fails with access denied:
systemctl -t socket
Failed to list units: Access denied.
Systemd journal shows dbus rejected the send messages. Attached are the
rejection messages showing the send to destination 'org.freedesktop.systemd1'
on interface 'org.freedesktop.systemd1.Manager' calling method 'ListUnitsFiltered'.
I have not modifed the dbus policy for systemd
('/etc/dbus-1/system.d/org.freedesktop.systemd1.conf) which allows those send messages.
I do have another test machine with the same versions of dbus and systemd, which
do not have any problems listing services, sockets, etc.
This problem first cropped up after the upgrade from systemd 208 to 215.
-- Package-specific info:
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (990, 'testing'), (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 3.16-2-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8) (ignored: LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages systemd depends on:
ii acl 2.2.52-2
ii adduser 3.113+nmu3
ii initscripts 2.88dsf-53.4
ii libacl1 2.2.52-2
ii libaudit1 1:2.4-1
ii libblkid1 2.20.1-5.11
ii libc6 2.19-11
ii libcap2 1:2.24-6
ii libcap2-bin 1:2.24-6
ii libcryptsetup4 2:1.6.6-1
ii libgcrypt20 1.6.2-3
ii libkmod2 18-3
ii liblzma5 5.1.1alpha+20120614-2
ii libpam0g 1.1.8-3.1
ii libselinux1 2.3-2
ii libsystemd0 215-5+b1
ii sysv-rc 2.88dsf-53.4
ii udev 215-5+b1
ii util-linux 2.20.1-5.11
Versions of packages systemd recommends:
ii dbus 1.8.8-1+b1
ii libpam-systemd 215-5+b1
Versions of packages systemd suggests:
pn systemd-ui <none>
-- Configuration Files:
/etc/systemd/system.conf changed:
[Manager]
-- no debconf information
-------------- next part --------------
-- Logs begin at Tue 2014-10-07 08:20:57 EDT, end at Mon 2014-10-13 12:06:51 EDT. --
Oct 11 19:00:28 asusb202 systemd[698]: Executing: /usr/bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation
Oct 11 19:00:28 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.PolicyKit1' unit='polkitd.service'
Oct 11 19:00:29 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.login1' unit='dbus-org.freedesktop.login1.service'
Oct 11 19:00:29 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.login1'
Oct 11 19:00:30 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.PolicyKit1'
Oct 11 19:00:33 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service'
Oct 11 19:00:34 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Oct 11 19:01:04 asusb202 org.a11y.Bus[2250]: Activating service name='org.a11y.atspi.Registry'
Oct 11 19:01:04 asusb202 org.a11y.Bus[2250]: Successfully activated service 'org.a11y.atspi.Registry'
Oct 11 19:01:04 asusb202 org.a11y.atspi.Registry[2863]: SpiRegistry daemon is running with well-known name - org.a11y.atspi.Registry
Oct 11 19:01:04 asusb202 org.a11y.atspi.Registry[2863]: ** (at-spi2-registryd:2885): WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Oct 11 19:01:04 asusb202 org.a11y.atspi.Registry[2863]: ** (at-spi2-registryd:2885): WARNING **: Unable to register client with session manager
Oct 11 19:01:07 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.ColorManager' unit='colord.service'
Oct 11 19:01:07 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.UDisks2' unit='udisks2.service'
Oct 11 19:01:08 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.UDisks2'
Oct 11 19:01:08 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.ColorManager'
Oct 11 19:01:08 asusb202 org.gtk.Private.AfcVolumeMonitor[2250]: Volume monitor alive
Oct 11 19:29:06 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.52" (uid=1000 pid=4658 comm="systemctl -t socket ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/bin/systemd ")
Oct 11 19:51:04 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.55" (uid=1000 pid=5244 comm="systemctl -t socket ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/bin/systemd ")
Oct 11 19:54:51 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.58" (uid=1000 pid=5292 comm="systemctl -t socket ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/bin/systemd ")
Oct 11 22:45:41 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.64" (uid=1000 pid=9318 comm="systemctl list-units ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/bin/systemd ")
Oct 11 22:46:11 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.65" (uid=1000 pid=9337 comm="systemctl list-timers ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/bin/systemd ")
Oct 12 06:41:57 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service'
Oct 12 06:41:58 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Oct 12 11:43:40 asusb202 dbus[698]: [system] Rejected send message, 9 matched rules; type="method_return", sender=":1.6" (uid=104 pid=695 comm="avahi-daemon: starting up ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.84" (uid=1000 pid=14838 comm="mousepad ")
Oct 12 11:43:40 asusb202 dbus[698]: [system] Rejected send message, 9 matched rules; type="method_return", sender=":1.6" (uid=104 pid=695 comm="avahi-daemon: starting up ") interface="(unset)" member="(unset)" error name="(unset)" requested_reply="0" destination=":1.84" (uid=1000 pid=14838 comm="mousepad ")
Oct 13 06:49:21 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service'
Oct 13 06:49:22 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Oct 13 11:52:10 asusb202 dbus[698]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service'
Oct 13 11:52:10 asusb202 dbus[698]: [system] Successfully activated service 'org.freedesktop.PackageKit'
Oct 13 11:57:20 asusb202 org.freedesktop.systemd1[2250]: ** (process:15919): WARNING **: Could not connect to cgmanager: Could not connect: No such file or directory
Oct 13 11:57:20 asusb202 org.freedesktop.systemd1[2250]: ** (process:15919): CRITICAL **: Unable to acquire bus name 'org.freedesktop.systemd1'. Quitting.
Oct 13 12:00:03 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.96" (uid=1000 pid=15949 comm="systemctl -t socket ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/lib/systemd/systemd --system --deserialize 15 ")
Oct 13 12:04:53 asusb202 dbus[698]: [system] Rejected send message, 4 matched rules; type="method_call", sender=":1.98" (uid=1000 pid=17045 comm="systemctl -t socket ") interface="org.freedesktop.systemd1.Manager" member="ListUnitsFiltered" error name="(unset)" requested_reply="0" destination="org.freedesktop.systemd1" (uid=0 pid=1 comm="/lib/systemd/systemd --system --deserialize 15 ")
More information about the Pkg-systemd-maintainers
mailing list