Allow adbd to access /proc/net/{tcp,tcp6,udp,udp6}

File accesses go through com.android.ddmlib.SyncService for CTS
ListeningPortsTest.

Bug: 193151739
Test: atest ListeningPortsTest
Change-Id: I0c66fb5e35cda3b1799cf003402e454d7a951e96
Merged-In: I0c66fb5e35cda3b1799cf003402e454d7a951e96
This commit is contained in:
Gregory Montoir 2021-09-06 09:25:13 +08:00 committed by Michael Groover
parent 2abed0062f
commit ac15c76a51

View file

@ -169,6 +169,9 @@ allow adbd sepolicy_file:file r_file_perms;
# Allow pulling config.gz for CTS purposes
allow adbd config_gz:file r_file_perms;
# For CTS listening ports test.
allow adbd proc_net_tcp_udp:file r_file_perms;
allow adbd gpu_service:service_manager find;
allow adbd surfaceflinger_service:service_manager find;
allow adbd bootchart_data_file:dir search;