summaryrefslogtreecommitdiffstats
path: root/recipes-config/agl-session
diff options
context:
space:
mode:
authorNaoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>2023-05-06 19:17:09 +0900
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2023-05-09 15:29:36 +0000
commit5128636f5f7f7fd89956c4a69be3730b58b48d8a (patch)
treea60167d59d89d094d2d0c6b2e09f64dbf84e0212 /recipes-config/agl-session
parent8431b953287f1fa849def345025f1aa1fa3f42cc (diff)
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: Ibe5cec7127f967890ddded4e45e2097d920fbfdd Signed-off-by: Naoto Yamaguchi <naoto.yamaguchi@aisin.co.jp>
Diffstat (limited to 'recipes-config/agl-session')
-rw-r--r--recipes-config/agl-session/agl-session_agl-container-guest-demo.inc14
1 files changed, 14 insertions, 0 deletions
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 ; \
+"