diff mbox series

[2/2] weston-init: Make weston user member of seat group

Message ID 20241127005121.683644-2-raj.khem@gmail.com
State New
Headers show
Series [1/2] seatd: Create seat user and package systemd service | expand

Commit Message

Khem Raj Nov. 27, 2024, 12:51 a.m. UTC
This enables weston launch to access the seatd socket
/run/seatd.sock to communicate properly to acquire seat

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta/recipes-graphics/wayland/weston-init.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Richard Purdie Nov. 27, 2024, 11:45 a.m. UTC | #1
On Tue, 2024-11-26 at 16:51 -0800, Khem Raj via lists.openembedded.org wrote:
> This enables weston launch to access the seatd socket
> /run/seatd.sock to communicate properly to acquire seat
> 
> Signed-off-by: Khem Raj <raj.khem@gmail.com>
> ---
>  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"
> -
> 


https://valkyrie.yoctoproject.org/#/builders/3/builds/558/steps/11/logs/stdio

Cheers,

Richard
Khem Raj Nov. 27, 2024, 8 p.m. UTC | #2
On Wed, Nov 27, 2024 at 3:45 AM Richard Purdie
<richard.purdie@linuxfoundation.org> wrote:
>
> On Tue, 2024-11-26 at 16:51 -0800, Khem Raj via lists.openembedded.org wrote:
> > This enables weston launch to access the seatd socket
> > /run/seatd.sock to communicate properly to acquire seat
> >
> > Signed-off-by: Khem Raj <raj.khem@gmail.com>
> > ---
> >  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"
> > -
> >
>
>
> https://valkyrie.yoctoproject.org/#/builders/3/builds/558/steps/11/logs/stdio
>

yeah saw that in my CI as well overnight, I have sent a v2 to address it.

> Cheers,
>
> Richard
>
diff mbox series

Patch

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"
-