diff options
| author | Jason Riordan <jriordan001@gmail.com> | 2017-01-13 23:55:29 -0500 |
|---|---|---|
| committer | Jason Riordan <jriordan001@gmail.com> | 2017-01-14 20:29:54 -0500 |
| commit | c7f08bad9ff43c12b99f4f3c51c46c76bb1ee594 (patch) | |
| tree | 8fe367989af36efd0639034f5b72231d0d7f012f | |
| parent | 83a2c6553bf925a2caa9b6f81fb7d7f672955b58 (diff) | |
mofd: sensors: correct perms for sensorhubd
Change-Id: I560315035c3d4541092133ec44ea0c78ce72ee49
| -rw-r--r-- | rootdir/etc/init.mofd_v1.rc | 10 | ||||
| -rw-r--r-- | sepolicy/sensorhubd.te | 1 |
2 files changed, 6 insertions, 5 deletions
diff --git a/rootdir/etc/init.mofd_v1.rc b/rootdir/etc/init.mofd_v1.rc index 24bc221..7845002 100644 --- a/rootdir/etc/init.mofd_v1.rc +++ b/rootdir/etc/init.mofd_v1.rc @@ -273,9 +273,9 @@ service drm /system/bin/drmserver service sensorhubd /system/bin/sensorhubd class main - user system - group system - socket sensorhubd stream 660 system system + user root + group root system readproc + socket sensorhubd stream 666 system system on charger mount ext4 /dev/block/by-name/system /system ro noatime barrier=1,data=ordered @@ -296,8 +296,8 @@ on charger #Turn on VPROG2 Power rail to avoid power leakage in Sensor -# chmod 0664 /sys/bus/pci/devices/0000:00:16.1/control -# write /sys/bus/pci/devices/0000:00:16.1/control "0 1 0" + chmod 0664 /sys/bus/pci/devices/0000:00:16.1/control + write /sys/bus/pci/devices/0000:00:16.1/control "0 1 0" on property:persist.asus.instant_camera=1 write sys/devices/platform/gpio-keys/enabled_wakeup 115 diff --git a/sepolicy/sensorhubd.te b/sepolicy/sensorhubd.te index d856a2b..bc0c928 100644 --- a/sepolicy/sensorhubd.te +++ b/sepolicy/sensorhubd.te @@ -11,6 +11,7 @@ allow sensorhubd sensor_sysfs_file:file rw_file_perms; allow sensorhubd sysfs:dir r_dir_perms; allow sensorhubd sysfs:file r_file_perms; allow sensorhubd rootfs:lnk_file r_file_perms; +allow sensorhubd self:capability dac_override; # Note: sensorhubd tries to exec a script to update the firmware, we # specifically do not allow that since we don't ship the script |
