Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9337a3c4 authored by Francescodario Cuzzocrea's avatar Francescodario Cuzzocrea Committed by ivanmeler
Browse files

universal8890: sepolicy: label grip sensor sysfs and allow sensor hal to rw permission on it

Change-Id: Iab218c708f57bafa888bc75cbdd48166d045da9a
parent dc96e6e9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -43,6 +43,7 @@ type sysfs_codec, sysfs_type, fs_type, mlstrustedobject;
type sysfs_devfreq, fs_type, sysfs_type, mlstrustedobject;
type sysfs_dsm, fs_type, sysfs_type, mlstrustedobject;
type sysfs_graphics, sysfs_type, fs_type, mlstrustedobject;
type sysfs_grip, fs_type, sysfs_type, mlstrustedobject;
type sysfs_hall, sysfs_type, fs_type, mlstrustedobject;
type sysfs_hmt, fs_type, sysfs_type, mlstrustedobject;
type sysfs_hrm, fs_type, sysfs_type, mlstrustedobject;
+3 −0
Original line number Diff line number Diff line
@@ -169,6 +169,9 @@
/sys/devices/[0-9]+\.dsim/lcd/panel(/.*)?           u:object_r:sysfs_graphics:s0
/sys/class/lcd/panel/smart_on                       u:object_r:sysfs_graphics:s0

# Grip
/sys/devices/virtual/input/input2(/.*)?             u:object_r:sysfs_grip:s0

# GPU
/sys/devices/[a-f0-9]+\.mali(/.*)?                  u:object_r:sysfs_mali:s0

+3 −0
Original line number Diff line number Diff line
@@ -15,18 +15,21 @@ allow hal_sensors_default {
}:file r_file_perms;

allow hal_sensors_default {
    sysfs_grip
    sysfs_hrm
    sysfs_spi_writeable
    sysfs_ssp
}:dir r_dir_perms;

allow hal_sensors_default {
    sysfs_grip
    sysfs_hrm
    sysfs_spi_writeable
    sysfs_ssp
}:file rw_file_perms;

allow hal_sensors_default {
    sysfs_grip
    sysfs_hrm
    sysfs_iio
}:lnk_file r_file_perms;