NetworkManager/data
Thomas Haller f137b32d31
sudo: introduce nm-sudo D-Bus service
NetworkManager runs as root and has lots of capabilities.
We want to reduce the attach surface by dropping capabilities,
but there is a genuine need to do certain things.

For example, we currently require dac_override capability, to open
the unix socket of ovsdb. Most users wouldn't use OVS, so we should
find a way to not require that dac_override capability. The solution
is to have a separate, D-Bus activate service (nm-sudo), which
has the capability to open and provide the file descriptor.

For authentication, we only rely on D-Bus. We watch the name owner
of NetworkManager, and only accept requests from that service. We trust
D-Bus to get it right a request from that name owner is really coming
from NetworkManager. If we couldn't trust that, how could PolicyKit
or any authentication via D-Bus work? For testing, the user can set
NM_SUDO_NO_AUTH_FOR_TESTING=1.

https://bugzilla.redhat.com/show_bug.cgi?id=1921826
2021-07-26 15:31:46 +02:00
..
84-nm-drivers.rules data: fix the ID_NET_DRIVER udev rule 2019-08-16 14:03:46 +02:00
85-nm-unmanaged.rules Revert "Do not manage Docker bridge interfaces" 2019-05-21 09:40:53 +02:00
90-nm-thunderbolt.rules all: add support for thunderbolt networking 2018-04-19 14:20:04 +02:00
meson.build sudo: introduce nm-sudo D-Bus service 2021-07-26 15:31:46 +02:00
NetworkManager-dispatcher.service.in Revert "dispatcher/systemd: order NetworkManager-dispatcher.service Before=NetworkManager.service" 2020-03-02 17:47:29 +01:00
NetworkManager-ovs.conf device: add support for OpenVSwitch devices 2017-10-30 21:46:55 +01:00
NetworkManager-wait-online-systemd-pre200.service.in systemd: add Documentation to service files 2016-06-02 21:27:14 +02:00
NetworkManager-wait-online.service.in systemd: remove code comment from "NetworkManager-wait-online.service.in" 2020-11-16 17:46:53 +01:00
NetworkManager.service.in core: increase limit of open file descriptors for NetworkManager.service 2021-03-03 09:17:35 +01:00
nm-shared.xml firewalld: allow access to SSH in "nm-shared" firewalld zone 2020-06-15 16:49:14 +02:00
nm-sudo.service.in sudo: introduce nm-sudo D-Bus service 2021-07-26 15:31:46 +02:00
org.freedesktop.NetworkManager.policy.in.in policy: update vendor-URL for NetworkManager in polkit policy 2021-02-16 11:32:31 +01:00
server.conf.in all: fix typos in documentation and comments 2017-03-17 15:11:20 +01:00