# data types
type display_vendor_data_file, file_type, data_file_type;
type fingerprintd_vendor_data_file, data_file_type, file_type;
-type mobicore_vendor_data_file, data_file_type, file_type;
type mediadrm_data_file, file_type, data_file_type;
-type mobicore_data_file, data_file_type, core_data_file_type, file_type;
# sysfs types
type sysfs_batteryinfo_charger_writable, sysfs_type, rw_fs_type, fs_type;
/dev/cpuset(/.*)? u:object_r:cgroup:s0
-/dev/mobicore u:object_r:tee_device:s0
-/dev/mobicore-user u:object_r:tee_device:s0
-/dev/t-base-tui u:object_r:tee_device:s0
-
# camera
/dev/m2m1shot_scaler0 u:object_r:m2m1shot_device:s0
allow hal_fingerprint_default fingerprintd_data_file:dir write;
-allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
allow hal_fingerprint_default fingerprint_device:chr_file rw_file_perms;
allow hal_fingerprint_default sysfs_virtual:dir search;
allow hal_fingerprint_default sysfs_virtual:file r_file_perms;
allow hal_gatekeeper_default gatekeeper_efs_file:file rw_file_perms;
allow hal_gatekeeper_default gatekeeper_efs_file:dir search;
-allow hal_gatekeeper_default tee_device:chr_file rw_file_perms;
allow hal_gatekeeper_default efs_file:dir search;
+++ /dev/null
-get_prop(hal_keymaster_default, tee_prop)
allow init sysfs_touchscreen_writable:file setattr;
allow init system_server:binder { transfer call };
-allow init tee_device:chr_file rw_file_perms;
allow init device:chr_file ioctl;
allow init self:tcp_socket create_socket_perms;
allow init node:tcp_socket node_bind;
# modemloader
type modemloader_prop, property_type;
-# mobicore (tee)
-type tee_prop, property_type;
-
type persist_rmnet_prop, property_type;
type persist_data_df_prop, property_type;
type persist_data_wda_prop, property_type;
ril.cbd.dt_revision u:object_r:modemloader_prop:s0
ro.modemloader.done u:object_r:modemloader_prop:s0
-# mobicore
-sys.mobicoredaemon.enable u:object_r:tee_prop:s0
-
persist.rmnet. u:object_r:persist_rmnet_prop:s0
persist.data.df. u:object_r:persist_data_df_prop:s0
persist.data.wda. u:object_r:persist_data_wda_prop:s0
+++ /dev/null
-allow tee efs_file:dir { search getattr };
-allow tee efs_file:file r_file_perms;
-allow tee gatekeeper_efs_file:dir r_dir_perms;
-allow tee gatekeeper_efs_file:file r_file_perms;
-allow tee init:unix_stream_socket connectto;
-allow tee property_socket:sock_file write;
-allow tee prov_efs_file:dir search;
-allow tee system_prop:property_service set;
-allow tee tee_prop:property_service set;
-
-# /dev/t-base-tui
-allow tee tee_device:chr_file r_file_perms;
-
-allow tee mobicore_vendor_data_file:dir r_dir_perms;
-allow tee mobicore_vendor_data_file:file rw_file_perms;
+++ /dev/null
-allow vendor_init mobicore_data_file:dir setattr;