type mobicore_vendor_data_file, file_type, data_file_type;
type mobicore_data_file, file_type, core_data_file_type, data_file_type;
type gatekeeper_efs_file, file_type;
+type mobicore_vendor_file, file_type;
/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
+
+/(vendor|system/vendor)/app/mcRegistry(/.*)? u:object_r:mobicore_vendor_file:s0
# /dev/mobicore-user
allow hal_fingerprint_default tee_device:chr_file rw_file_perms;
+
+# /vendor/app/mcRegistry/
+r_dir_file(hal_fingerprint_default, mobicore_vendor_file)
# /dev/mobicore-user
allow hal_gatekeeper_default tee_device:chr_file rw_file_perms;
+
+# /vendor/app/mcRegistry/
+allow hal_gatekeeper_default mobicore_vendor_file:dir search;
+allow hal_gatekeeper_default mobicore_vendor_file:file rw_file_perms;
get_prop(hal_keymaster_default, tee_prop)
+
+# /vendor/app/mcRegistry/
+allow hal_keymaster_default mobicore_vendor_file:dir search;
+allow hal_keymaster_default mobicore_vendor_file:file rw_file_perms;
--- /dev/null
+allow system_server mobicore_vendor_file:dir r_dir_perms;
allow tee mobicore_vendor_data_file:dir r_dir_perms;
allow tee mobicore_vendor_data_file:file rw_file_perms;
+
+# /vendor/app/mcRegistry/
+r_dir_file(tee, mobicore_vendor_file)