]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Mon, 22 Feb 2021 15:53:37 +0000 (23:53 +0800)
commite42dd9cff98f2149904e104f08bc3f19ee7b6fc0
treefa74793f37c5e214e4f9d4375d8cbb87bc3c8ac6
parentc8f6e0ff5fce8be60b7187c7c3511550db7f96ca
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>
(cherry picked from commit ef8cf581b680f8b8ee35d50c75891b4fd8b91f2f)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
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.9.bb