resolved: expose a new bus property that informs about the /etc/resolv.conf mode
authorLennart Poettering <lennart@poettering.net>
Tue, 29 Sep 2020 15:25:15 +0000 (17:25 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 8 Dec 2020 13:42:14 +0000 (14:42 +0100)
commitd07f5bbcd9d011d4957e92590cb9ac863e732342
tree4d3faafb77546149d906d87499f7d62f41e82ba0
parent10425647897ed500899d7321bd620df79ca5d6dd
resolved: expose a new bus property that informs about the /etc/resolv.conf mode

It can be one of "foreign", "missing", "stub", "static", "uplink",
depending on how /etc/resolv.conf is set up:

foreign → someone/something else manages /etc/resolv.conf,
    systemd-resolved is just the consumer

missing → /etc/resolv.conf is missing altogether

stub/static/uplink → the file is managed by resolved, with the
    well-known modes

Fixes: #17159
(cherry picked from commit 4261ab654c0df009b5a37a30593d58d47fec617f)
man/org.freedesktop.resolve1.xml
src/resolve/resolved-bus.c
src/resolve/resolved-resolv-conf.c
src/resolve/resolved-resolv-conf.h