PL2: sepolicy: Allow NFC HAL to register vendor.nxp.nxpnfc

Change-Id: I15ce92f39bba9fd8e24649105bd850200b62f7ca
This commit is contained in:
LuK1337
2019-03-08 20:55:09 +01:00
committed by Nolen Johnson
parent e805495581
commit c2e393e6b2
4 changed files with 8 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
# Allow hal_nfc_default to add and find hal_nxpnfc_hwservice
allow hal_nfc_default hal_nxpnfc_hwservice:hwservice_manager { find add };
allow hal_nfc_default sec_device:chr_file rw_file_perms;
allow hal_nfc_default nfc_vendor_data_file:dir { search };

1
sepolicy/vendor/hwservice.te vendored Normal file
View File

@@ -0,0 +1 @@
type hal_nxpnfc_hwservice, hwservice_manager_type;

1
sepolicy/vendor/hwservice_contexts vendored Normal file
View File

@@ -0,0 +1 @@
vendor.nxp.nxpnfc::INxpNfc u:object_r:hal_nxpnfc_hwservice:s0

View File

@@ -1,3 +1,6 @@
# Allow nfc to find hal_nxpnfc_hwservice
allow nfc hal_nxpnfc_hwservice:hwservice_manager find;
allow nfc nfc_vendor_data_file:dir { rw_dir_perms };
allow nfc nfc_vendor_data_file:file { create_file_perms };