msm8974-common: sepolicy: Resurrect alarm_device

* Both our ril_daemon, via libsec-ril*.so, and our time_daemon
  need access to this device node

Change-Id: Ib787f45596bb6aa606bab102a5bd1cb93eb645a4
This commit is contained in:
Kevin F. Haggerty 2020-05-26 09:48:01 -06:00
parent d6b1712058
commit f3cd79f3ae
No known key found for this signature in database
GPG Key ID: 6D95512933112729
4 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,5 @@
type alarm_device, dev_type, mlstrustedobject;
type proc_bt_sleep, fs_type, proc_type;
type sysfs_camera, fs_type, sysfs_type;

View File

@ -8,6 +8,7 @@
/data/.wifiver.info u:object_r:wifi_data_file:s0
# device nodes
/dev/alarm u:object_r:alarm_device:s0
/dev/batch_io u:object_r:sensors_device:s0
/dev/bcm2079x u:object_r:nfc_device:s0
/dev/btlock u:object_r:bluetooth_device:s0

View File

@ -1,5 +1,7 @@
set_prop(rild, net_radio_prop)
allow rild alarm_device:chr_file rw_file_perms;
allow rild radio_data_file:dir rw_dir_perms;
allow rild radio_data_file:file create_file_perms;
allow rild radio_data_file:lnk_file read;

View File

@ -0,0 +1 @@
allow time_daemon alarm_device:chr_file rw_file_perms;