config-tizen-ivi: add users to "video" and "input" group
authorPatrick Ohly <patrick.ohly@intel.com>
Tue, 3 Feb 2015 14:05:37 +0000 (06:05 -0800)
committerPatrick Ohly <patrick.ohly@intel.com>
Tue, 3 Feb 2015 15:22:49 +0000 (07:22 -0800)
This is important for launching weston: otherwise it fails to
read /dev/dri resp. /dev/input. This is different from normal
Tizen where users are part of "video", but not "input". Instead
weston-launch is suid root.

"weston-launch" no longer seems to be used at all. Perhaps it
was used to control access to the suid root weston-launch.

Needs further investigation and consolidation with Tizen...

Change-Id: I7aadbcc758434527192d3725bd9c1462f84c3a7a

meta-tizen-ivi/recipes-image/config-tizen-profiles/config-tizen-ivi.bb

index 771366d..7c07bb2 100644 (file)
@@ -39,6 +39,8 @@ GROUPADD_PARAM_${PN} += "; --system -g 6026 db_wrt "
 
 
 
-USERADD_PARAM_${PN} += "   -u 116 -d /home/genivi -m -g users -G users,input,tty,video,weston-launch -r -s /bin/sh genivi  "
-USERADD_PARAM_${PN} += ";  -u 5000 -d /home/app    -m -g users -G users,weston-launch,tty -r -s /bin/sh app  "
+USERADD_PARAM_${PN} += "   -u 116 -d /home/genivi -m -g users -G users,tty,audio,video,input,weston-launch -r -s /bin/sh genivi  "
+USERADD_PARAM_${PN} += ";  -u 5000 -d /home/app    -m -g users -G users,tty,audio,video,input,weston-launch -r -s /bin/sh app  "
 USERADD_PARAM_${PN} += ";          -d /usr/apps -m -g root  --system  -s /bin/false tizenglobalapp "
+
+USERADD_PARAM_${PN} += "; -u 9999 -g users -d /home/guest -m -g users -G users,tty,audio,video,input,weston-launch -r -s /bin/bash guest"