Merge "Making sys.boot.reason.last restricted" into main

This commit is contained in:
Alexei Nicoara 2023-09-13 17:35:49 +00:00 committed by Gerrit Code Review
commit 37d8c5f8c2
2 changed files with 4 additions and 0 deletions

View file

@ -17,6 +17,7 @@ neverallow {
-dumpstate
userdebug_or_eng(`-incidentd')
-init
-platform_app
-recovery
-shell
-system_server

View file

@ -116,6 +116,9 @@ get_prop(platform_app, keyguard_config_prop)
# allow platform apps to read qemu.hw.mainkeys
get_prop(platform_app, qemu_hw_prop)
# allow platform apps to read sys.boot.reason.last
get_prop(platform_app, last_boot_reason_prop)
# allow platform apps to create symbolic link
allow platform_app app_data_file:lnk_file create_file_perms;