Policy Kit vs sudo
Posted Nov 20, 2009 22:07 UTC (Fri) by
dskoll (subscriber, #1630)
In reply to:
Fedora 12 to remove unprivileged package installation by drag
Parent article:
Fedora 12 to remove unprivileged package installation
However the Dbus IPC is sockets-based. Nothing exotic like a shared memory scheme or anything like that. It gives users root access via those privileged daemons in the a similar manner that having httpd running as root gives remote users root access over port 80.
Except there are two huge differences:
- No-one runs httpd as root. It drops privileges immediately after creating the listening socket.
- The Policy Kit daemon is explicitly designed to run as root and do root-privileged things. That's its whole purpose, after all!
So it's not the case that all the security lies in dbus. The security lies in dbus and the policy kit daemon and in making sure your policies are correctly implemented. It's the last two (especially the last one) that will cause trouble.
I'm not convinced that a root-privileged daemon that sanitizes its input is any more or less secure than a SUID binary that sanitizes its environment, etc. It seems to me neither approach is inherently more or less secure.
(
Log in to post comments)