Allow system server to getattr profile_data_files
This is needed in order to get the stat-size of the files.
Bug: 30934496
Test: gts-tradefed -m GtsAndroidRuntimeManagerHostTestCases
Change-Id: I1df0ba941e8f9ff13a23df4063acc3c4f1555c1b
diff --git a/private/system_server.te b/private/system_server.te
index 65fb7de..2102391 100644
--- a/private/system_server.te
+++ b/private/system_server.te
@@ -727,7 +727,7 @@
# System server never reads the actual content. It passes the descriptor to
# to privileged apps which acquire the permissions to inspect the profiles.
allow system_server user_profile_data_file:dir { search };
-allow system_server user_profile_data_file:file { open read };
+allow system_server user_profile_data_file:file { getattr open read };
###
### Neverallow rules