From 4119c8e2475afd4409016e15200492fb293ab559 Mon Sep 17 00:00:00 2001 From: Joshua Watt Date: Mon, 16 Nov 2020 08:38:26 -0600 Subject: 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] (From OE-Core rev: e42dd9cff98f2149904e104f08bc3f19ee7b6fc0) Signed-off-by: Joshua Watt Signed-off-by: Richard Purdie (cherry picked from commit ef8cf581b680f8b8ee35d50c75891b4fd8b91f2f) Signed-off-by: Anuj Mittal Signed-off-by: Richard Purdie --- meta/recipes-core/systemd/systemd_246.9.bb | 1 + 1 file changed, 1 insertion(+) (limited to 'meta/recipes-core/systemd/systemd_246.9.bb') diff --git a/meta/recipes-core/systemd/systemd_246.9.bb b/meta/recipes-core/systemd/systemd_246.9.bb index 2f460e9bee..daee795cc2 100644 --- a/meta/recipes-core/systemd/systemd_246.9.bb +++ b/meta/recipes-core/systemd/systemd_246.9.bb @@ -21,6 +21,7 @@ SRC_URI += "file://touchscreen.rules \ file://0001-binfmt-Don-t-install-dependency-links-at-install-tim.patch \ file://0003-implment-systemd-sysv-install-for-OE.patch \ file://0001-systemd.pc.in-use-ROOTPREFIX-without-suffixed-slash.patch \ + file://0001-logind-Restore-chvt-as-non-root-user-without-polkit.patch \ " # patches needed by musl -- cgit v1.2.3-54-g00ecf