summaryrefslogtreecommitdiffstats
path: root/meta/classes/cmake.bbclass
diff options
context:
space:
mode:
authorLuca Boccassi <luca.boccassi@microsoft.com>2021-02-18 18:36:20 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-19 10:59:57 +0000
commit07a8f1629662d4d66d056d95be3cb9e749242274 (patch)
treef78bbc19d15156a4a103168a43ecb51a56bb4941 /meta/classes/cmake.bbclass
parent4449fa226e94f7124215c5ead43aadda7967f3af (diff)
downloadopenembedded-core-contrib-07a8f1629662d4d66d056d95be3cb9e749242274.tar.gz
systemd: add hostname fallback when polkit is not available
When polkit is not available, networkd will not have permissions to call hostnamed's dbus methods, as it runs without privileges. To solve this, when building without polkit, make a new PACKAGECONFIG 'polkit_hostnamed_fallback' available which changes hostnamed so that it runs as the 'systemd-network' user, the same as networkd, so that the authorization works (and also with CAP_SYS_ADMIN since it loses root). Also run it with a separate 'systemd-hostname' group which also owns the bus, to avoid giving the 'systemd-network' additional privileges. Signed-off-by: Luca Boccassi <luca.boccassi@microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/cmake.bbclass')
0 files changed, 0 insertions, 0 deletions