diff options
-rw-r--r-- | qemu_trusty_base.mk | 1 | ||||
-rw-r--r-- | sepolicy/file_contexts | 2 | ||||
-rw-r--r-- | sepolicy/spiproxyd.te | 3 | ||||
-rw-r--r-- | ueventd.qemu_trusty.rc | 1 |
4 files changed, 7 insertions, 0 deletions
diff --git a/qemu_trusty_base.mk b/qemu_trusty_base.mk index 24de79d..438edc3 100644 --- a/qemu_trusty_base.mk +++ b/qemu_trusty_base.mk @@ -110,6 +110,7 @@ PRODUCT_COPY_FILES += \ # for Trusty $(call inherit-product, system/core/trusty/trusty-base.mk) $(call inherit-product, system/core/trusty/trusty-storage.mk) +$(call inherit-product, system/core/trusty/trusty-test.mk) # Test Utilities PRODUCT_PACKAGES += \ diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts index 22c1f88..3153bd1 100644 --- a/sepolicy/file_contexts +++ b/sepolicy/file_contexts @@ -1,6 +1,8 @@ /dev/trusty-ipc-dev0 u:object_r:tee_device:s0 /dev/vport3p1 u:object_r:rpmb_virt_device:s0 +/dev/vport3p2 u:object_r:spi_virt_device:s0 /vendor/bin/dhcpclient u:object_r:dhcpclient_exec:s0 +/vendor/bin/spiproxyd u:object_r:tee_exec:s0 /vendor/bin/storageproxyd u:object_r:tee_exec:s0 /data/vendor/var/run(/.*)? u:object_r:varrun_file:s0 /data/vendor/ss(/.*)? u:object_r:tee_data_file:s0 diff --git a/sepolicy/spiproxyd.te b/sepolicy/spiproxyd.te new file mode 100644 index 0000000..af35110 --- /dev/null +++ b/sepolicy/spiproxyd.te @@ -0,0 +1,3 @@ +type spi_virt_device, dev_type; + +allow tee spi_virt_device:chr_file { open read write }; diff --git a/ueventd.qemu_trusty.rc b/ueventd.qemu_trusty.rc index 0fd832e..159408a 100644 --- a/ueventd.qemu_trusty.rc +++ b/ueventd.qemu_trusty.rc @@ -1,2 +1,3 @@ /dev/vport3p1 0660 system system +/dev/vport3p2 0660 system system /dev/trusty-ipc-dev0 0660 system drmrpc |