The GL driver needs to access to the powervr sync device /dev/pvr_sync (provided by gles-user-module).
If a graphic application wants access to display (SupplementaryGroups=display),
and so GL access, the ACL on /dev/pvr_sync must have:
- a smack label "*"
- a dac (group display)
m3ulcb:~# ls -lZ /dev/pvr_sync
crw-rw----. 1 root display * 10, 59 Jun 29 03:06 /dev/pvr_sync
Bug-AGL: [SPEC-3617]
Change-Id: Ia6472424ac07c60a5c16cb6f48174481e8dd759d
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
Reviewed-on: https://gerrit.automotivelinux.org/gerrit/c/AGL/meta-agl/+/25415
Reviewed-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
Reviewed-by: Stéphane Desneux <stephane.desneux@iot.bzh>
Tested-by: Jan-Simon Moeller <jsmoeller@linuxfoundation.org>
require checksum_control.inc
require checksum_control.inc
+
+do_install_append(){
+ sed -i 's/MODE="0660", OWNER/MODE="0660", SECLABEL{smack}="*", OWNER/g' ${D}${sysconfdir}/udev/rules.d/72-pvr-seat.rules
+ sed -i 's/GROUP="video"/GROUP="display"/g' ${D}${sysconfdir}/udev/rules.d/72-pvr-seat.rules
+}