NetworkManager/src
Thomas Haller de5dddccbe
core: get file descriptor to ovsdb unix socket from nm-sudo
To talk to ovsdb, we use the unix socket at
/var/run/openvswitch/db.sock. But that socket is owned by another user
and NetworkManager would need dac_override capability to open it.

We want to drop dac_override, but we still need to talk to ovsdb. Add a
GetFD() method to nm-sudo.

We still first try to open the socket directly. Maybe it just works.

Note that SELinux may block passing file descriptors from nm-sudo. If it
doesn't work for you, test with SELinux permissive mode and wait for an
SELinux update.
2021-07-26 15:31:46 +02:00
..
c-list build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
c-rbtree build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
c-siphash build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
c-stdaux build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
contrib clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
core core: get file descriptor to ovsdb unix socket from nm-sudo 2021-07-26 15:31:46 +02:00
libnm-base core: get file descriptor to ovsdb unix socket from nm-sudo 2021-07-26 15:31:46 +02:00
libnm-client-aux-extern build: move "clients/common/" to "src/libnmc-{base,setting}/" 2021-03-02 08:38:25 +01:00
libnm-client-impl libnm: use nm_ascii_is_ctrl_or_del() in nm_utils_fixup_product_string() to preserve UTF-8 2021-07-19 09:04:49 +02:00
libnm-client-public clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnm-client-test build/meson: cleanup dependencies for libnm-core-aux-intern 2021-02-28 10:42:05 +01:00
libnm-core-aux-extern build/meson: cleanup dependencies for libnm-core-aux-extern 2021-02-28 10:42:06 +01:00
libnm-core-aux-intern bond: support the peer_notif_delay bond option 2021-07-01 15:20:22 -03:00
libnm-core-impl libnm: add from_dbus_fcn for direct NMSettingIPConfig.gateway property 2021-07-23 17:02:04 +02:00
libnm-core-intern libnm: add from_dbus_fcn for direct properties 2021-07-23 17:02:04 +02:00
libnm-core-public libnm: fix NM_SETTING_IP_CONFIG_CLASS() macro 2021-07-09 14:58:00 +02:00
libnm-glib-aux glib-aux: add nm_g_idle_add() 2021-07-26 15:30:04 +02:00
libnm-log-core clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnm-log-null build: remove shared/ directory 2021-02-24 12:49:13 +01:00
libnm-platform platform: don't add routes that are tracked as external routes 2021-07-21 09:54:58 +02:00
libnm-std-aux clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnm-systemd-core clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnm-systemd-shared clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnm-udev-aux build/meson: cleanup dependencies for libnm-udev-aux 2021-02-28 10:42:04 +01:00
libnmc-base clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnmc-setting clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
libnmt-newt libnmt-newt: use cleanup macro in nmt_newt_button_build_component() 2021-05-11 13:56:50 +02:00
linux-headers clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
n-acd build: move c-util/nettools library from "shared/" to "src/" 2021-02-24 12:48:28 +01:00
n-dhcp4 n-dhcp4: avoid maybe-uninitialized warning in n_dhcp4_c_connection_dispatch_io() 2021-06-30 16:35:42 +02:00
nm-cloud-setup glib-aux,cloud-setup: add _nm_logging_enabled*() helper API 2021-07-23 16:43:37 +02:00
nm-daemon-helper clang-format: use "IndentPPDirectives:None" instead of "BeforeHash" 2021-07-09 08:49:06 +02:00
nm-dispatcher build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-initrd-generator initrd: support infiniband pkeys 2021-07-26 14:56:18 +02:00
nm-online build: fix linking libnm-log-null into different test programs 2021-07-05 14:51:27 +02:00
nm-sudo core: get file descriptor to ovsdb unix socket from nm-sudo 2021-07-26 15:31:46 +02:00
nmcli cli: Provide optional support for libedit instead of readline 2021-07-14 17:16:45 +02:00
nmtui all: use nm_g_idle_add() instead of g_idle_add() 2021-07-26 15:30:09 +02:00
tests/client nmcli: include 'searches' field for nmcli device show 2021-07-09 15:21:08 -03:00
meson.build sudo: introduce nm-sudo D-Bus service 2021-07-26 15:31:46 +02:00