From patchwork Wed Nov 27 00:51:20 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 53254 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 78618D66BA2 for ; Wed, 27 Nov 2024 00:51:26 +0000 (UTC) Received: from mail-pg1-f169.google.com (mail-pg1-f169.google.com [209.85.215.169]) by mx.groups.io with SMTP id smtpd.web10.61696.1732668685341302030 for ; Tue, 26 Nov 2024 16:51:25 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=HJpzt/Qc; spf=pass (domain: gmail.com, ip: 209.85.215.169, mailfrom: raj.khem@gmail.com) Received: by mail-pg1-f169.google.com with SMTP id 41be03b00d2f7-7fc8f0598cdso19915a12.1 for ; Tue, 26 Nov 2024 16:51:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732668684; x=1733273484; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uwyz8eZo6tz+lYldf7+5kINb/RzYNkd6b3z01ZAP/G4=; b=HJpzt/QcLRzLL5kI7I78GzMxjNAG6BVUBRWO0Q2TGhMowGj2xNatu0Z46H6RRLOI5s PPc02wtCUWvclB3DRxaXXQqG4bcBzTdy7Y2+Rb/SgpFoOI98C4p1YOBsMYEOMbihejhX xgierZFJRlhOwbCrscDBeNWOpygCRkXaLhALj/m+GjHuzJ8Yi662hA47qYrYZWvujRzQ 50n98S3hN3YkOJ7yAzDsY/hMMic8b3bj62N5oWp2ZEbX9DpyzcIx2zYiKgxeZxnOA8N4 LZOOzFCA3+sMnFydWngxiMGXYZU+XsxxfRxKE4mtVhyHxrin5/QdnfTb5+hhPzK4u2CD RK2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732668684; x=1733273484; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uwyz8eZo6tz+lYldf7+5kINb/RzYNkd6b3z01ZAP/G4=; b=NAyCPAJIq0XQIzrWaL6gnsBjQ/20e0anI9ks8vGV3qBPnTzKtQPI9IqS5TXzs0aWCm 4z6Gi76byjNYe+Jm8FNbBuACc19sKgV5BJq1IrnVwC9Gh4vaY/Eq+ST4LnLoiuqaIYen 6yGco8b1yZ03kVo3Puu/z3MuFZiDDP3AMAI8yID+47xJ5mOlvPsH8nhy0QNU0YEaVl64 Q9xyGHeZJoN8cjhhAg2m2o2iMiaEe3LjDBU7H83RztX9SqQdsPoLD9vSbU4CuvnX1MqS SHROS9oN6BEPH9zG02kuJ8ULyp1Uhe1aUGaEgtXmv971sEDn4+Ic70BlBdzTsCBU31o7 sXew== X-Gm-Message-State: AOJu0YygpQ9VXFxEbr9c4pikCt0R1k6RpG0/INhPwAi2K8JZYBYDxE0S DRVfu69nb3HGm0l5dksIkiD2tAYmT92W1uTJige1W7QikmNQzNzA6fpdbA== X-Gm-Gg: ASbGnctX0HAtcHCWp3m4x2OPp9rtkQiRevxzXzuaGsDLU1BnMBkO++FANUpVjCgODRs 06b9DFC2Dfldjsyi8tW2WtNz7ZBE58t5QyxNFNmlFe+6Vs2fXoaQKzswq9AfrvY5wPX3/CXtoFH lClRKZ8DI0rQWRVS+blF9EWmbKceJrPVGSuHyBMyq2et3c2BpQTa2XaBxELmf/Oeshnbe8cMc1g RA/lVxIJT7DkRhSCFD2CdPkloUCc88X3ReL6Fl5lqFyreU4oqlD X-Google-Smtp-Source: AGHT+IHhcWPOU2kqHOFYBofDPjedHbOg1lBMpWJbJppwk8iwyWVeAYotJFKuqD5FNRTMVZLJ7QSdfQ== X-Received: by 2002:a05:6a20:4393:b0:1e0:d5be:bf75 with SMTP id adf61e73a8af0-1e0e11badd8mr1896057637.17.1732668684432; Tue, 26 Nov 2024 16:51:24 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8201:fd20::4338]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fbcc1e41d7sm8092209a12.23.2024.11.26.16.51.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 16:51:24 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 1/2] seatd: Create seat user and package systemd service Date: Tue, 26 Nov 2024 16:51:20 -0800 Message-ID: <20241127005121.683644-1-raj.khem@gmail.com> X-Mailer: git-send-email 2.47.1 MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 27 Nov 2024 00:51:26 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/207890 With latest version seatd does not work properly if user access permissions are not correctly set, therefore create 'seat' group and package the seatd.service file and enable it by default with systemd distro feature set logind to systemd when using systemd as default init system Signed-off-by: Khem Raj --- meta/recipes-core/seatd/seatd_0.9.1.bb | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/meta/recipes-core/seatd/seatd_0.9.1.bb b/meta/recipes-core/seatd/seatd_0.9.1.bb index 8da57acc567..8ee43a3dc8f 100644 --- a/meta/recipes-core/seatd/seatd_0.9.1.bb +++ b/meta/recipes-core/seatd/seatd_0.9.1.bb @@ -11,7 +11,7 @@ SRC_URI = "git://git.sr.ht/~kennylevinsen/seatd;protocol=https;branch=master \ SRCREV = "566ffeb032af42865dc1210e48cec08368059bb9" S = "${WORKDIR}/git" -inherit meson pkgconfig update-rc.d +inherit meson pkgconfig systemd update-rc.d useradd # https://www.openwall.com/lists/musl/2020/01/20/3 CFLAGS:append:libc-musl:powerpc64le = " -Wno-error=overflow" @@ -22,14 +22,21 @@ PACKAGECONFIG ?= " \ " PACKAGECONFIG[libseat-builtin] = "-Dlibseat-builtin=enabled,-Dlibseat-builtin=disabled" -PACKAGECONFIG[systemd] = ",,systemd" +PACKAGECONFIG[systemd] = "-Dlibseat-logind=systemd,,systemd" do_install:append() { if [ "${VIRTUAL-RUNTIME_init_manager}" != "systemd" ]; then install -Dm755 ${UNPACKDIR}/init ${D}/${sysconfdir}/init.d/seatd + else + install -Dm644 ${S}/contrib/systemd/seatd.service ${D}${systemd_unitdir}/system/seatd.service fi } +USERADD_PACKAGES = "${PN}" +GROUPADD_PARAM:${PN} = "-r seat" + INITSCRIPT_NAME = "seatd" INITSCRIPT_PARAMS = "start 9 5 2 . stop 20 0 1 6 ." INHIBIT_UPDATERCD_BBCLASS = "${@oe.utils.conditional('VIRTUAL-RUNTIME_init_manager', 'systemd', '1', '', d)}" + +SYSTEMD_SERVICE:${PN} = "seatd.service" From patchwork Wed Nov 27 00:51:21 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Khem Raj X-Patchwork-Id: 53255 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 579A6D66BA3 for ; Wed, 27 Nov 2024 00:51:36 +0000 (UTC) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mx.groups.io with SMTP id smtpd.web11.61973.1732668687121949004 for ; Tue, 26 Nov 2024 16:51:27 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hlfLhte9; spf=pass (domain: gmail.com, ip: 209.85.210.174, mailfrom: raj.khem@gmail.com) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-7252f48acf2so355827b3a.2 for ; Tue, 26 Nov 2024 16:51:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732668686; x=1733273486; darn=lists.openembedded.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Ej8QUXPi1rHdQ742Q027REmGZziZpHKnMhCp1Pjj79E=; b=hlfLhte9r3FUz7rAEQcjrra8UoxHjz+Mqjra4YTzBf3ymt2tcEwe8lj//8L8i1ht0W idbG0tfUunZi1E2ibmyvjMlI0N8Jql3Y5AgZTTFfQNqVmxXcdFeByUsEE6lKlrWMrCtI rBbjCLDZM1cXTFxNIuC2zulcIMJZ8Stiqf8K0l02FJND3YoSQkES2VgXc52Tqx9YtEwU Awlt23vrGNNAPAg8pjvzEOUeD5w2IZPB7FZ/aVnf/JJtSSh83lf+ue1UP6IQj2AIZMAg vc513AeUSRRxrefnS4L8lwlnWmk6Rhp80Uk0+ZsEBTa1QZmnerHw8fYbiZxiGC4bjzmo qd9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732668686; x=1733273486; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Ej8QUXPi1rHdQ742Q027REmGZziZpHKnMhCp1Pjj79E=; b=LUOirj3hsK9hyaJlhKimj7/H7GNma7rX22PTsLjkx5DD6ykaVKZEPg8kLuWop9boBM xr65QxATzPSNXLufjv/BxrpHbpRHgUqZ7oCvrLVIrF7jZxttVSmdJpIPyGlK7dWbKkz7 FQXeJYhBzmbbYeeWVBUj8uwWVVFbKg09cTrINZu6ZkwmQVa5FmGDV3T0V4vGy5rCwdMi sFCDxe8n626DwmUd/EoiznAPtWtapZKwtakPyXnWPskYfX/42wkdPFdzAMKGddCzSjan zJ/dL6sKbSZorX9nMozw44C1iFAUIUv7wQJxUzTzh2LVamdpvkHqZ7Tp+r9HYFj0lF+M GmAA== X-Gm-Message-State: AOJu0YyQqNB0a1HQsQi0fdasVzQb3FRpc57ESzCEigEgvY62kV2oa3mf KsCI6d61SJadSsNqNhQB70pMHZ/aPIthRD85aqQ6Q+ZmHZ13ln3xnAMb0Q== X-Gm-Gg: ASbGncuB30m8CwAd+A+BNth/H7m8iIZivrU2cAo+e5wBhYwJ1rgUU9vdTary0hI1Lkv zVnMMw+N6oyn9ub9gia3fkCvP/j5lsvCouE1bz+RAOIplwpD+eTim8AHY7qOECfDZ0VYok8AY5I AC4ZCJOS6NFClU5Xh/YHh1yZQVm87heRDUlgjsH7ol3RkKhSYrh+uWGHTPm4teBswt5RhIhaUwK lWAkJco7JxKJgfn1kB6Vq0WLgaBovZXD2ZeFIIOEg6K7FXVtkUg X-Google-Smtp-Source: AGHT+IG5eX03sbIRZUgTzYjE/6I3APczxBuL32VzYLGqIejTjA26Vc2OmThtYZyErkyJwozE0Nea/g== X-Received: by 2002:a05:6a00:2da2:b0:71e:7674:4cf6 with SMTP id d2e1a72fcca58-7253002489amr2508943b3a.8.1732668685806; Tue, 26 Nov 2024 16:51:25 -0800 (PST) Received: from apollo.hsd1.ca.comcast.net ([2601:646:8201:fd20::4338]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-7fbcc1e41d7sm8092209a12.23.2024.11.26.16.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Nov 2024 16:51:25 -0800 (PST) From: Khem Raj To: openembedded-core@lists.openembedded.org Cc: Khem Raj Subject: [PATCH 2/2] weston-init: Make weston user member of seat group Date: Tue, 26 Nov 2024 16:51:21 -0800 Message-ID: <20241127005121.683644-2-raj.khem@gmail.com> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20241127005121.683644-1-raj.khem@gmail.com> References: <20241127005121.683644-1-raj.khem@gmail.com> MIME-Version: 1.0 List-Id: X-Webhook-Received: from li982-79.members.linode.com [45.33.32.79] by aws-us-west-2-korg-lkml-1.web.codeaurora.org with HTTPS for ; Wed, 27 Nov 2024 00:51:36 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/207891 This enables weston launch to access the seatd socket /run/seatd.sock to communicate properly to acquire seat Signed-off-by: Khem Raj --- meta/recipes-graphics/wayland/weston-init.bb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/recipes-graphics/wayland/weston-init.bb b/meta/recipes-graphics/wayland/weston-init.bb index 3de697ec34e..52ffba336aa 100644 --- a/meta/recipes-graphics/wayland/weston-init.bb +++ b/meta/recipes-graphics/wayland/weston-init.bb @@ -102,6 +102,5 @@ FILES:${PN} += "\ CONFFILES:${PN} += "${sysconfdir}/xdg/weston/weston.ini ${sysconfdir}/default/weston" SYSTEMD_SERVICE:${PN} = "weston.service weston.socket" -USERADD_PARAM:${PN} = "--home /home/weston --shell /bin/sh --user-group -G video,input,render,wayland weston" +USERADD_PARAM:${PN} = "--home /home/weston --shell /bin/sh --user-group -G video,input,render,seat,wayland weston" GROUPADD_PARAM:${PN} = "-r wayland; -r render" -