diff options
author | Dehao Chen <dehao@google.com> | 2015-05-05 15:11:44 -0700 |
---|---|---|
committer | Dehao Chen <dehao@google.com> | 2015-05-06 15:26:03 -0700 |
commit | 34a468fad2c0b624b0cf383671384d0452dd83e6 (patch) | |
tree | b3ac1cb37b7b42e3b95091f1b436ed9872527a0b /untrusted_app.te | |
parent | 38d0247da007fda16a30c34d48a551387f7b01c2 (diff) | |
download | android_external_sepolicy-34a468fad2c0b624b0cf383671384d0452dd83e6.tar.gz android_external_sepolicy-34a468fad2c0b624b0cf383671384d0452dd83e6.tar.bz2 android_external_sepolicy-34a468fad2c0b624b0cf383671384d0452dd83e6.zip |
Update sepolicy to add label for /data/misc/perfprofd.
Bug: 19483574
(cherry picked from commit 7d66f783c2ddea4dd5f9fcd91b2589ab74e30f8a)
Change-Id: If617e29b6fd36c88c157941bc9e11cf41329da48
Diffstat (limited to 'untrusted_app.te')
-rw-r--r-- | untrusted_app.te | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/untrusted_app.te b/untrusted_app.te index 215898f..7a9e2dd 100644 --- a/untrusted_app.te +++ b/untrusted_app.te @@ -104,6 +104,13 @@ allow untrusted_app { apk_tmp_file apk_private_tmp_file }:file r_file_perms; # #define SIOCSIWCOMMIT 0x8B00 /* Commit pending changes to driver */ allow untrusted_app self:{ rawip_socket tcp_socket udp_socket } { 0x8900-0x8926 0x8928-0x89ff 0x8b00 }; +# Allow GMS core to access perfprofd output, which is stored +# in /data/misc/perfprofd/. GMS core will need to list all +# data stored in that directory to process them one by one. +userdebug_or_eng(` + allow untrusted_app perfprofd_data_file:file r_file_perms; + allow untrusted_app perfprofd_data_file:dir r_dir_perms; +') ### ### neverallow rules ### |