diff options
author | Avijit Kanti Das <avijitnsec@codeaurora.org> | 2015-05-12 14:07:41 -0700 |
---|---|---|
committer | Divya Sharma <c_shard@codeaurora.org> | 2015-06-26 11:13:47 -0700 |
commit | 441bad4f456ab96ac64d10a508d2a42ab8e0b365 (patch) | |
tree | 27078f93e6eaba02eafe4181a3d41f0fa76de27f /test | |
parent | 11230bb0164cac6c948417d8abc255cd2b2c04f3 (diff) | |
download | android_device_qcom_sepolicy-441bad4f456ab96ac64d10a508d2a42ab8e0b365.tar.gz android_device_qcom_sepolicy-441bad4f456ab96ac64d10a508d2a42ab8e0b365.tar.bz2 android_device_qcom_sepolicy-441bad4f456ab96ac64d10a508d2a42ab8e0b365.zip |
Replacing permissions with macros
Replacing all the permissions with macros
Allow all domians except untrusted_app to access diag_device
Restrict untrusted_app to access diag_device
Change-Id: Ibad902746f25a23f10840fae3c0bac65b2ff74e0
Diffstat (limited to 'test')
-rw-r--r-- | test/diag_test.te | 1 | ||||
-rw-r--r-- | test/qmi_ping.te | 2 | ||||
-rw-r--r-- | test/qmi_test_service.te | 2 |
3 files changed, 0 insertions, 5 deletions
diff --git a/test/diag_test.te b/test/diag_test.te index 3ed38159..2700ca26 100644 --- a/test/diag_test.te +++ b/test/diag_test.te @@ -5,7 +5,6 @@ userdebug_or_eng(` domain_auto_trans(adbd, diagdciclient_exec, diag_test) allow diag_test devpts:chr_file getattr; allow diag_test self:capability dac_override; - allow diag_test diag_device:chr_file {ioctl read write open}; allow diag_test devpts:chr_file {ioctl read write open}; ') diff --git a/test/qmi_ping.te b/test/qmi_ping.te index c5808f14..b4322932 100644 --- a/test/qmi_ping.te +++ b/test/qmi_ping.te @@ -9,8 +9,6 @@ userdebug_or_eng(` allow qmi_ping devpts:chr_file {read write ioctl getattr}; #to access smem logs allow qmi_ping smem_log_device:chr_file {read write open ioctl}; - #to enable qmuxd interface apis to access diag - allow qmi_ping diag_device:chr_file {read write open ioctl}; #enable accessing the path where qmuxds named sockets are present #to interface with qmuxd through unix sockets #to use socket interface to ipc router diff --git a/test/qmi_test_service.te b/test/qmi_test_service.te index 55066bbe..b62d653a 100644 --- a/test/qmi_test_service.te +++ b/test/qmi_test_service.te @@ -11,8 +11,6 @@ userdebug_or_eng(` allow qmi_test_service devpts:chr_file {read write getattr ioctl}; #to access smem log allow qmi_test_service smem_log_device:chr_file {read write open ioctl}; - #to enable qmuxd interface apis to access diag - allow qmi_test_service diag_device:chr_file {read write open ioctl}; #enable accessing the path where qmuxds named sockets are present #to interface with qmuxd through unix sockets #to access ipc router socket |