[RCAR] Fix smack rule for pvr device 15/25415/6
authorRonan Le Martret <ronan.lemartret@iot.bzh>
Wed, 7 Oct 2020 08:59:55 +0000 (08:59 +0000)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 15 Oct 2020 20:53:44 +0000 (20:53 +0000)
commit6f2a36574b49042d71d33c0019ebff5decde8f65
treec5461a346348303690ba5f69b8bdfa4eb83c9cc2
parent6d46b8cb03890d899af2bf6e5222dc0954836c90
[RCAR] Fix smack rule for pvr device

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>
meta-agl-bsp/meta-rcar-gen3/recipes-graphics/gles-module/gles-user-module.bbappend