summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorqctecmdr <qctecmdr@localhost>2020-02-17 04:38:11 -0800
committerGerrit - the friendly Code Review server <code-review@localhost>2020-02-17 04:38:11 -0800
commitacd58c268ce756ba0a8e4d4b1c0d457f2120d976 (patch)
tree22fd932539974f254e0e318cbd85d5dee428072d
parent11831666c1b2afded3c140eb536670403e39b1da (diff)
parent00043e0e7ffb336dd86cac63dbf84bdf5b6239fc (diff)
Merge "sepolicy: allow SPU-HAL-service to access spss_utils char device"
-rw-r--r--qva/vendor/common/hal_spu_qti.te3
-rw-r--r--qva/vendor/common/sec_nvm.te2
2 files changed, 4 insertions, 1 deletions
diff --git a/qva/vendor/common/hal_spu_qti.te b/qva/vendor/common/hal_spu_qti.te
index d3664bfc..950e4a20 100644
--- a/qva/vendor/common/hal_spu_qti.te
+++ b/qva/vendor/common/hal_spu_qti.te
@@ -41,6 +41,9 @@ binder_call(hal_spu_server, hal_spu_client)
# Allow the service to be added to hwservice list
hal_attribute_hwservice(hal_spu, hal_spu_hwservice)
+# Allow access to spss_utils device
+allow hal_spu_qti spss_utils_device:chr_file rw_file_perms;
+
# Allow access to spcom devices
allow hal_spu_qti spcom_device:chr_file rw_file_perms;
allow hal_spu_qti skp_device:chr_file rw_file_perms;
diff --git a/qva/vendor/common/sec_nvm.te b/qva/vendor/common/sec_nvm.te
index 93817d43..5a06e348 100644
--- a/qva/vendor/common/sec_nvm.te
+++ b/qva/vendor/common/sec_nvm.te
@@ -41,7 +41,7 @@ allow sec_nvm persist_secnvm_file:file create_file_perms;
allow sec_nvm sysfs_scsi_host:file rw_file_perms;
# Allow access to spss_utils device
-allow spdaemon spss_utils_device:chr_file rw_file_perms;
+allow sec_nvm spss_utils_device:chr_file rw_file_perms;
allow sec_nvm spcom_device:chr_file { getattr rw_file_perms };
allow sec_nvm sp_ssr_device:chr_file rw_file_perms;