[ALPS04710092] Save network log save log in data

1. Add SElinux permission to save log in data

MTK-Commit-Id: 80d74125ac0c04cb560b2b71bafe89e0d9d7441f

Change-Id: I6f17f70e3530257331331b92bdf095749d64283f
CR-Id: ALPS04710092
Feature: Network Log Tool
This commit is contained in:
bo.shang 2020-01-18 10:17:49 +08:00
parent 103246ae55
commit 5eaf34477d

View File

@ -96,3 +96,9 @@ allow netdiag proc_net_tcp_udp:file getattr;
allow netdiag netd:binder call;
get_prop(netdiag, apexd_prop)
# Q save log into /data/debuglogger
allow netdiag debuglog_data_file:dir {relabelto create_dir_perms};
allow netdiag debuglog_data_file:file create_file_perms;
allow netdiag system_data_file:dir { create_dir_perms relabelfrom };
allow netdiag file_contexts_file:file { r_file_perms };
file_type_auto_trans(netdiag, system_data_file, debuglog_data_file)