Skip to content
Snippets Groups Projects
Commit 926dc331 authored by Myles Watson's avatar Myles Watson
Browse files

Allow debuggerd to access native tests

Test: run a gtest in /data/nativetest/ with no permission denial
Change-Id: Id644ed7dbea59becaf84b6073c9144711ad07c10
parent d5db9de5
No related branches found
No related tags found
No related merge requests found
......@@ -300,6 +300,7 @@
/data/media(/.*)? u:object_r:media_rw_data_file:s0
/data/mediadrm(/.*)? u:object_r:media_data_file:s0
/data/nativetest(/.*)? u:object_r:nativetest_data_file:s0
/data/nativetest64(/.*)? u:object_r:nativetest_data_file:s0
/data/property(/.*)? u:object_r:property_data_file:s0
/data/preloads(/.*)? u:object_r:preloads_data_file:s0
......
......@@ -55,6 +55,12 @@ allow debuggerd {
# Connect to system_server via /data/system/ndebugsocket.
unix_socket_connect(debuggerd, system_ndebug, system_server)
# Get stack traces for VTS executables
userdebug_or_eng(`
allow debuggerd nativetest_data_file:dir search;
allow debuggerd nativetest_data_file:file r_file_perms;
')
userdebug_or_eng(`
allow debuggerd input_device:dir r_dir_perms;
allow debuggerd input_device:chr_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