am 4fd4a205
: Allow adbd / shell /data/anr access
* commit '4fd4a2054db06329acc524c7eb07715ec625dc5d': Allow adbd / shell /data/anr access
This commit is contained in:
commit
a5afe484ef
2 changed files with 8 additions and 0 deletions
4
adbd.te
4
adbd.te
|
@ -39,6 +39,10 @@ allow adbd shell_data_file:file create_file_perms;
|
|||
allow adbd sdcard_type:dir create_dir_perms;
|
||||
allow adbd sdcard_type:file create_file_perms;
|
||||
|
||||
# adb pull /data/anr/traces.txt
|
||||
allow adbd anr_data_file:dir r_dir_perms;
|
||||
allow adbd anr_data_file:file r_file_perms;
|
||||
|
||||
# Set service.adb.*, sys.powerctl properties.
|
||||
unix_socket_connect(adbd, property, init)
|
||||
allow adbd shell_prop:property_service set;
|
||||
|
|
4
shell.te
4
shell.te
|
@ -13,4 +13,8 @@ app_domain(shell)
|
|||
read_logd(shell)
|
||||
control_logd(shell)
|
||||
|
||||
# read files in /data/anr
|
||||
allow shell anr_data_file:dir r_dir_perms;
|
||||
allow shell anr_data_file:file r_file_perms;
|
||||
|
||||
# inherits from shelldomain.te
|
||||
|
|
Loading…
Reference in a new issue