Add easel sepolicy.

Test: easelmanager_client_example
Change-Id: Iaed2e346b469ce907f7f1ffe0012d8c5840af385
This commit is contained in:
Chenjie Luo
2017-11-03 09:38:18 -07:00
parent ea46f456cd
commit 8843e8e1f9
4 changed files with 16 additions and 0 deletions

13
sepolicy/vendor/easel.te vendored Normal file
View File

@@ -0,0 +1,13 @@
# easel service
type easel, domain;
type easel_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(easel)
add_service(easel, easel_service)
vndbinder_use(easel)
# access easel dev nodes
allow easel easel_device:chr_file rw_file_perms;
allow easel sysfs_easel:file rw_file_perms;

View File

@@ -155,6 +155,7 @@
/vendor/bin/qmuxd u:object_r:qmuxd_exec:s0
/vendor/bin/cnd u:object_r:cnd_exec:s0
/vendor/bin/ATFWD-daemon u:object_r:atfwd_exec:s0
/vendor/bin/easelmanagerd u:object_r:easel_exec:s0
# Remove after b/38447389
/vendor/bin/esed u:object_r:esed_exec:s0
# Rename to android.hardware.[XXX] after b/38447431

View File

@@ -1,2 +1,3 @@
type qdisplay_service, vndservice_manager_type;
type per_mgr_service, vndservice_manager_type;
type easel_service, vndservice_manager_type;

View File

@@ -1,2 +1,3 @@
display.qservice u:object_r:qdisplay_service:s0
vendor.qcom.PeripheralManager u:object_r:per_mgr_service:s0
easelmanager u:object_r:easel_service:s0