summaryrefslogtreecommitdiffstats
path: root/common/spdaemon.te
diff options
context:
space:
mode:
Diffstat (limited to 'common/spdaemon.te')
-rw-r--r--common/spdaemon.te15
1 files changed, 13 insertions, 2 deletions
diff --git a/common/spdaemon.te b/common/spdaemon.te
index 1a2d6840..0a78b9c8 100644
--- a/common/spdaemon.te
+++ b/common/spdaemon.te
@@ -27,6 +27,7 @@
# spdaemon service
type spdaemon, domain;
+
type spdaemon_exec, exec_type, file_type;
init_daemon_domain(spdaemon)
@@ -43,6 +44,9 @@ allow spdaemon sp_ssr_device:chr_file rw_file_perms;
# Allow access to sp_keymaster device
allow spdaemon sp_keymaster_device:chr_file rw_file_perms;
+# Allow access to cryptoapp device
+allow spdaemon cryptoapp_device:chr_file rw_file_perms;
+
# Allow access to ion device
allow spdaemon ion_device:chr_file rw_file_perms;
@@ -56,5 +60,12 @@ allow spdaemon spss_data_file:file r_file_perms;
# Allow check SPSS Apps images stat()
allow spdaemon spss_data_file:file getattr;
-# Allow set system prop
-allow spdaemon system_prop:property_service set;
+# Allow get system info
+r_dir_file(spdaemon, sysfs)
+
+# Allow SPSS-PIL via Peripheral Manager
+binder_use(spdaemon)
+use_per_mgr(spdaemon)
+
+# Allow set/get prop to set/check if app is loaded
+set_prop(spdaemon, spcomlib_prop)