From 7ac9e5cfbcc9dc8c2e37dee16c07d82c29600efa Mon Sep 17 00:00:00 2001 From: Naoto Yamaguchi Date: Sat, 6 May 2023 19:17:09 +0900 Subject: Override group setting for agl-driver In container integration case, a common group between host and guest shall use static groups. AGL Demo IVI run agl-compositor using agl-driver user and group. The agl-driver doesn't have input group. This patch add agl-driver to input group. Bug-AGL: SPEC-4766 Change-Id: I4dddd6096a780c120509518a02cc77736f1dd38d Signed-off-by: Naoto Yamaguchi --- .../agl-session/agl-session_agl-container-guest-demo.inc | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'recipes-config/agl-session') diff --git a/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc b/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc index c13abf50c..94a0b9003 100644 --- a/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc +++ b/recipes-config/agl-session/agl-session_agl-container-guest-demo.inc @@ -1 +1,15 @@ FILESEXTRAPATHS:prepend := "${THISDIR}/agl-container-guest:" + +# Allow input device for agl-driver +GROUPADD_PARAM:${PN} = "\ + --system display ; \ + --system video ; \ + --system input ; \ + --system pipewire ; \ + -g 1001 agl-driver ; \ + -g 1003 applaunchd ; \ +" +USERADD_PARAM:${PN} = "\ + -g 1001 -u 1001 -G video,input,display,pipewire,applaunchd -o -d /home/agl-driver -m -K PASS_MAX_DAYS=-1 agl-driver ; \ + -g 1003 -u 1003 -o -d / -K PASS_MAX_DAYS=-1 applaunchd ; \ +" -- cgit 1.2.3-korg