Skip to content
Snippets Groups Projects
Commit f66fd522 authored by Max Bires's avatar Max Bires Committed by android-build-merger
Browse files

Merge "Adding ability for priv apps to read traceur fd"

am: 8966b8e5

Change-Id: Ic24196b6a4050696d92f18a6879c569ccf5eaec7
parents 82e9a73a 8966b8e5
No related branches found
No related tags found
No related merge requests found
...@@ -58,6 +58,9 @@ allow priv_app media_rw_data_file:file create_file_perms; ...@@ -58,6 +58,9 @@ allow priv_app media_rw_data_file:file create_file_perms;
allow priv_app shell_data_file:file r_file_perms; allow priv_app shell_data_file:file r_file_perms;
allow priv_app shell_data_file:dir r_dir_perms; allow priv_app shell_data_file:dir r_dir_perms;
# Allow traceur to pass file descriptors through a content provider to betterbug
allow priv_app trace_data_file:file { getattr read };
# Allow verifier to access staged apks. # Allow verifier to access staged apks.
allow priv_app { apk_tmp_file apk_private_tmp_file }:dir r_dir_perms; allow priv_app { apk_tmp_file apk_private_tmp_file }:dir r_dir_perms;
allow priv_app { apk_tmp_file apk_private_tmp_file }:file r_file_perms; allow priv_app { apk_tmp_file apk_private_tmp_file }:file r_file_perms;
...@@ -191,3 +194,8 @@ neverallow priv_app mlstrustedsubject:process fork; ...@@ -191,3 +194,8 @@ neverallow priv_app mlstrustedsubject:process fork;
# bugs, so we want to ensure priv_app never has this # bugs, so we want to ensure priv_app never has this
# capability. # capability.
neverallow priv_app file_type:file link; neverallow priv_app file_type:file link;
# priv apps should not be able to open trace data files, they should depend
# upon traceur to pass a file descriptor which they can then read
neverallow priv_app trace_data_file:dir *;
neverallow priv_app trace_data_file:file { no_w_file_perms open };
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