aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTianjie Xu2018-04-11 18:44:00 -0500
committerTianjie Xu2018-04-18 01:54:39 -0500
commit7d474279976191b6438974d9dbe2318daa4c92af (patch)
treeb0875dca29c04461885e0d71683e3c243413ff26
parent53cabd6c352dd37608be0e8bebfabf5b1edcd31b (diff)
downloadsystem-sepolicy-7d474279976191b6438974d9dbe2318daa4c92af.tar.gz
system-sepolicy-7d474279976191b6438974d9dbe2318daa4c92af.tar.xz
system-sepolicy-7d474279976191b6438974d9dbe2318daa4c92af.zip
Allow dumpstate to read the update_engine logs
Denial message: avc: denied { read } for pid=2775 comm="dumpstate" name="update_engine_log" dev="sda35" ino=3850274 scontext=u:r:dumpstate:s0 tcontext=u:object_r:update_engine_log_data_file:s0 tclass=dir permissive=0 Bug: 78201703 Test: take a bugreport Change-Id: I2c788c1211812aa0fcf58cee37a6e8f955424849
-rw-r--r--public/dumpstate.te4
1 files changed, 4 insertions, 0 deletions
diff --git a/public/dumpstate.te b/public/dumpstate.te
index 88071577..2602552b 100644
--- a/public/dumpstate.te
+++ b/public/dumpstate.te
@@ -189,6 +189,10 @@ allow dumpstate cache_recovery_file:file r_file_perms;
189allow dumpstate recovery_data_file:dir r_dir_perms; 189allow dumpstate recovery_data_file:dir r_dir_perms;
190allow dumpstate recovery_data_file:file r_file_perms; 190allow dumpstate recovery_data_file:file r_file_perms;
191 191
192#Access /data/misc/update_engine_log
193allow dumpstate update_engine_log_data_file:dir r_dir_perms;
194allow dumpstate update_engine_log_data_file:file r_file_perms;
195
192# Access /data/misc/profiles/{cur,ref}/ 196# Access /data/misc/profiles/{cur,ref}/
193userdebug_or_eng(` 197userdebug_or_eng(`
194 allow dumpstate user_profile_data_file:dir r_dir_perms; 198 allow dumpstate user_profile_data_file:dir r_dir_perms;