Skip to content
Snippets Groups Projects
Commit ced1751e authored by Tri Vo's avatar Tri Vo
Browse files

Remove mtd_device type.

mtd_device does not label any /dev node present on walleye, and the only
permission to that type is:
allow hal_telephony_server mtd_device:dir search;
I suspect there is no need to keep mtd_device around.

Bug: 110962171
Test: boot aosp_walleye
Change-Id: If74b1258b21edeca38c8b7dc07a3a10b751a7e85
parent ca5b01b0
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ ...@@ -6,6 +6,7 @@
(type i2c_device) (type i2c_device)
(type mediacodec) (type mediacodec)
(type mediacodec_exec) (type mediacodec_exec)
(type mtd_device)
(type qtaguid_proc) (type qtaguid_proc)
(type thermalcallback_hwservice) (type thermalcallback_hwservice)
(type untrusted_v2_app) (type untrusted_v2_app)
......
...@@ -102,7 +102,6 @@ ...@@ -102,7 +102,6 @@
/dev/loop-control u:object_r:loop_control_device:s0 /dev/loop-control u:object_r:loop_control_device:s0
/dev/mem u:object_r:kmem_device:s0 /dev/mem u:object_r:kmem_device:s0
/dev/modem.* u:object_r:radio_device:s0 /dev/modem.* u:object_r:radio_device:s0
/dev/mtd(/.*)? u:object_r:mtd_device:s0
/dev/mtp_usb u:object_r:mtp_device:s0 /dev/mtp_usb u:object_r:mtp_device:s0
/dev/pmsg0 u:object_r:pmsg_device:s0 /dev/pmsg0 u:object_r:pmsg_device:s0
/dev/pn544 u:object_r:nfc_device:s0 /dev/pn544 u:object_r:nfc_device:s0
......
...@@ -28,7 +28,6 @@ type input_device, dev_type; ...@@ -28,7 +28,6 @@ type input_device, dev_type;
type kmem_device, dev_type; type kmem_device, dev_type;
type port_device, dev_type; type port_device, dev_type;
type lowpan_device, dev_type; type lowpan_device, dev_type;
type mtd_device, dev_type;
type mtp_device, dev_type, mlstrustedobject; type mtp_device, dev_type, mlstrustedobject;
type nfc_device, dev_type; type nfc_device, dev_type;
type ptmx_device, dev_type, mlstrustedobject; type ptmx_device, dev_type, mlstrustedobject;
......
...@@ -14,7 +14,6 @@ allow hal_telephony_server cgroup:dir create_dir_perms; ...@@ -14,7 +14,6 @@ allow hal_telephony_server cgroup:dir create_dir_perms;
allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms; allow hal_telephony_server cgroup:{ file lnk_file } r_file_perms;
allow hal_telephony_server radio_device:chr_file rw_file_perms; allow hal_telephony_server radio_device:chr_file rw_file_perms;
allow hal_telephony_server radio_device:blk_file r_file_perms; allow hal_telephony_server radio_device:blk_file r_file_perms;
allow hal_telephony_server mtd_device:dir search;
allow hal_telephony_server efs_file:dir create_dir_perms; allow hal_telephony_server efs_file:dir create_dir_perms;
allow hal_telephony_server efs_file:file create_file_perms; allow hal_telephony_server efs_file:file create_file_perms;
allow hal_telephony_server vendor_shell_exec:file rx_file_perms; allow hal_telephony_server vendor_shell_exec:file rx_file_perms;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment