NetworkManager/src/nm-daemon-helper
Beniamino Galvani 229bebfae9 nm-daemon-helper: add "service" argument
Introduce a new argument to specify a comma-separated list of NSS
services to use for the "resolve-address" command. For now only accept
"dns" and "files"; the latter can be used to do a lookup into
/etc/hosts.

Note that previously the command failed in presence of extra
arguments. Therefore, when downgrading NetworkManager without
restarting the service, the previously-installed version of the daemon
(newer) would spawn the helper with the extra argument, and the
newly-installed version of the helper (older) would fail. This issue
only impacts hostname resolution and can be fixed by just restarting
the daemon.

In the upgrade path everything works as before, with the only
difference that the helper will use by default both "dns" and "files"
services.

Don't strictly check for the absence of extra arguments, so that in
the future we can introduce more arguments without necessarily break
the downgrade path.
2024-07-04 15:39:03 +02:00
..
meson.build core: add infrastructure for spawning a helper process 2021-06-11 21:59:11 +02:00
nm-daemon-helper.c nm-daemon-helper: add "service" argument 2024-07-04 15:39:03 +02:00
README.md all: add some README.md files describing the purpose of our sources 2021-08-19 17:51:11 +02:00

nm-daemon-helper

A internal helper application that is spawned by NetworkManager to perform certain actions.

Currently all it does is doing a reverse DNS lookup, which cannot be done by NetworkManager because the operation requires to reconfigure the libc resolver (which is a process-wide operation).

This is not directly useful to the user.