Merge "sepolicy: add rule to use diag hal for Factory tool"
This commit is contained in:
commit
e11526d0c0
6 changed files with 22 additions and 0 deletions
7
generic/vendor/test/system_app.te
vendored
Normal file → Executable file
7
generic/vendor/test/system_app.te
vendored
Normal file → Executable file
|
@ -33,3 +33,10 @@ userdebug_or_eng(`
|
|||
|
||||
allow system_app self:socket create_socket_perms_no_ioctl;
|
||||
')
|
||||
|
||||
userdebug_or_eng(`
|
||||
# allow system_app access diag hal
|
||||
diag_use(system_app)
|
||||
hal_client_domain(system_app, vendor_hal_diaghal)
|
||||
hal_client_domain(system_app, hal_allocator)
|
||||
')
|
||||
|
|
2
legacy/vendor/common/mmi_sys.te
vendored
2
legacy/vendor/common/mmi_sys.te
vendored
|
@ -37,4 +37,6 @@ hal_client_domain(vendor_mmi_sys, vendor_hal_factory_qti);
|
|||
#diag
|
||||
userdebug_or_eng(`
|
||||
diag_use(vendor_mmi_sys)
|
||||
hal_client_domain(vendor_mmi_sys, vendor_hal_diaghal)
|
||||
hal_client_domain(vendor_mmi_sys, hal_allocator)
|
||||
')
|
||||
|
|
2
legacy/vendor/common/qcomsysd.te
vendored
2
legacy/vendor/common/qcomsysd.te
vendored
|
@ -57,4 +57,6 @@ userdebug_or_eng(`
|
|||
allow vendor_qcomsysd sysfs_qdss_dev:dir r_dir_perms;
|
||||
allow vendor_qcomsysd sysfs_qdss_dev:file rw_file_perms;
|
||||
allow vendor_qcomsysd sysfs_data:file r_file_perms;
|
||||
hal_client_domain(vendor_qcomsysd, vendor_hal_diaghal)
|
||||
hal_client_domain(vendor_qcomsysd, hal_allocator)
|
||||
')
|
||||
|
|
7
legacy/vendor/test/system_app.te
vendored
Normal file → Executable file
7
legacy/vendor/test/system_app.te
vendored
Normal file → Executable file
|
@ -35,3 +35,10 @@ userdebug_or_eng(`
|
|||
|
||||
allow system_app self:socket create_socket_perms_no_ioctl;
|
||||
')
|
||||
|
||||
userdebug_or_eng(`
|
||||
# allow system_app access diag hal
|
||||
diag_use(system_app)
|
||||
hal_client_domain(system_app, vendor_hal_diaghal)
|
||||
hal_client_domain(system_app, hal_allocator)
|
||||
')
|
2
qva/vendor/common/mmi_sys.te
vendored
2
qva/vendor/common/mmi_sys.te
vendored
|
@ -33,4 +33,6 @@ hal_client_domain(vendor_mmi_sys, vendor_hal_factory_qti);
|
|||
#diag
|
||||
userdebug_or_eng(`
|
||||
diag_use(vendor_mmi_sys)
|
||||
hal_client_domain(vendor_mmi_sys, vendor_hal_diaghal)
|
||||
hal_client_domain(vendor_mmi_sys, hal_allocator)
|
||||
')
|
||||
|
|
2
qva/vendor/common/qcomsysd.te
vendored
2
qva/vendor/common/qcomsysd.te
vendored
|
@ -55,4 +55,6 @@ userdebug_or_eng(`
|
|||
allow vendor_qcomsysd vendor_sysfs_qdss_dev:dir r_dir_perms;
|
||||
allow vendor_qcomsysd vendor_sysfs_qdss_dev:file rw_file_perms;
|
||||
allow vendor_qcomsysd vendor_sysfs_data:file r_file_perms;
|
||||
hal_client_domain(vendor_qcomsysd, vendor_hal_diaghal)
|
||||
hal_client_domain(vendor_qcomsysd, hal_allocator)
|
||||
')
|
||||
|
|
Loading…
Reference in a new issue