Skip to content
Snippets Groups Projects
Commit 19a87733 authored by Yifan Hong's avatar Yifan Hong
Browse files

Allow adbd and shell to read /proc/config.gz

for CTS device info collection purposes.

Bug: 28656227
Test: m cts -j && cts-tradefed run cts -m Gesture --test
android.gesture.cts.GestureTest#testGetStrokes

Change-Id: I8caf3580fb05fb489dc5abb917c8cb78cb089fb7
parent 0181f5f1
No related branches found
No related tags found
No related merge requests found
...@@ -106,6 +106,9 @@ allow adbd seapp_contexts_file:file r_file_perms; ...@@ -106,6 +106,9 @@ allow adbd seapp_contexts_file:file r_file_perms;
allow adbd property_contexts_file:file r_file_perms; allow adbd property_contexts_file:file r_file_perms;
allow adbd sepolicy_file:file r_file_perms; allow adbd sepolicy_file:file r_file_perms;
# Allow pulling config.gz for CTS purposes
allow adbd config_gz:file r_file_perms;
allow adbd surfaceflinger_service:service_manager find; allow adbd surfaceflinger_service:service_manager find;
allow adbd bootchart_data_file:dir search; allow adbd bootchart_data_file:dir search;
allow adbd bootchart_data_file:file r_file_perms; allow adbd bootchart_data_file:file r_file_perms;
......
...@@ -7,6 +7,9 @@ allow shell tracing_shell_writable:file rw_file_perms; ...@@ -7,6 +7,9 @@ allow shell tracing_shell_writable:file rw_file_perms;
allow shell debugfs_trace_marker:file getattr; allow shell debugfs_trace_marker:file getattr;
allow shell atrace_exec:file rx_file_perms; allow shell atrace_exec:file rx_file_perms;
# read config.gz for CTS purposes
allow shell config_gz:file r_file_perms;
userdebug_or_eng(` userdebug_or_eng(`
allow shell tracing_shell_writable_debug:file rw_file_perms; allow shell tracing_shell_writable_debug:file rw_file_perms;
') ')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment