]> code.ossystems Code Review - openembedded-core.git/commit
systemd: Re-enable chvt as non-root user without polkit
authorJoshua Watt <JPEWhacker@gmail.com>
Mon, 16 Nov 2020 14:38:26 +0000 (08:38 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 17 Nov 2020 21:53:10 +0000 (21:53 +0000)
commitef8cf581b680f8b8ee35d50c75891b4fd8b91f2f
treed0c30ab294de790e5360ae741ba6a036f1f6852c
parentf3fa54f91eef5b1b967a6a14b53a07de052dd17a
systemd: Re-enable chvt as non-root user without polkit

systemd 245 introduced a regression in behavior where they removed
support for non-root users to chvt from a service file. This prevents
running compositors (e.g. weston) as any user other than root. The
intention is for polkit to be used to allow this (and in fact the
default polkit rules that ship with systemd allow this). However, polkit
is a huge dependency to bring in for an embedded system, and isn't
support by OE-core.

The patch has been proposed upstream to restore the previous behavior of
allowing a non-root user to chvt to unbreak the regression without
requiring polkit.

Upstream-Status: Submitted [https://github.com/systemd/systemd/pull/17494]
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/systemd/systemd/0001-logind-Restore-chvt-as-non-root-user-without-polkit.patch [new file with mode: 0644]
meta/recipes-core/systemd/systemd_246.6.bb