bootstat: enhance last reboot reason property with file backing am: 79f9ca6789
Change-Id: I45c0026a8436c0ee7052e311591b06a3f3106f9a
This commit is contained in:
commit
d5c3a11681
@ -118,6 +118,7 @@
|
||||
mediaswcodec_tmpfs
|
||||
mediaextractor_update_service
|
||||
mediaprovider_tmpfs
|
||||
metadata_bootstat_file
|
||||
metadata_file
|
||||
mnt_product_file
|
||||
mnt_vendor_file
|
||||
|
@ -107,6 +107,7 @@
|
||||
mediaswcodec
|
||||
mediaswcodec_exec
|
||||
mediaswcodec_tmpfs
|
||||
metadata_bootstat_file
|
||||
metadata_file
|
||||
mnt_product_file
|
||||
mnt_vendor_file
|
||||
|
@ -98,6 +98,7 @@
|
||||
mediaswcodec
|
||||
mediaswcodec_exec
|
||||
mediaswcodec_tmpfs
|
||||
metadata_bootstat_file
|
||||
mnt_product_file
|
||||
network_stack
|
||||
network_stack_service
|
||||
|
@ -61,6 +61,7 @@
|
||||
light_service
|
||||
linker_prop
|
||||
linkerconfig_file
|
||||
metadata_bootstat_file
|
||||
mnt_pass_through_file
|
||||
mock_ota_prop
|
||||
module_sdkextensions_prop
|
||||
|
@ -697,6 +697,7 @@
|
||||
/metadata/gsi/ota(/.*)? u:object_r:ota_metadata_file:s0
|
||||
/metadata/password_slots(/.*)? u:object_r:password_slot_metadata_file:s0
|
||||
/metadata/ota(/.*)? u:object_r:ota_metadata_file:s0
|
||||
/metadata/bootstat(/.*)? u:object_r:metadata_bootstat_file:s0
|
||||
|
||||
#############################
|
||||
# asec containers
|
||||
|
@ -15,6 +15,9 @@ get_prop(bootstat, boottime_prop)
|
||||
set_prop(bootstat, bootloader_boot_reason_prop)
|
||||
set_prop(bootstat, system_boot_reason_prop)
|
||||
set_prop(bootstat, last_boot_reason_prop)
|
||||
allow bootstat metadata_file:dir search;
|
||||
allow bootstat metadata_bootstat_file:dir rw_dir_perms;
|
||||
allow bootstat metadata_bootstat_file:file create_file_perms;
|
||||
|
||||
# ToDo: TBI move access for the following to a system health HAL
|
||||
|
||||
|
@ -230,6 +230,8 @@ type password_slot_metadata_file, file_type;
|
||||
type apex_metadata_file, file_type;
|
||||
# libsnapshot files within /metadata
|
||||
type ota_metadata_file, file_type;
|
||||
# property files within /metadata/bootstat
|
||||
type metadata_bootstat_file, file_type;
|
||||
|
||||
# Type for /dev/cpu_variant:.*.
|
||||
type dev_cpu_variant, file_type;
|
||||
|
@ -566,6 +566,8 @@ allow init vendor_shell_exec:file execute;
|
||||
# Metadata setup
|
||||
allow init vold_metadata_file:dir create_dir_perms;
|
||||
allow init vold_metadata_file:file getattr;
|
||||
allow init metadata_bootstat_file:dir create_dir_perms;
|
||||
allow init metadata_bootstat_file:file w_file_perms;
|
||||
|
||||
# Allow init to touch PSI monitors
|
||||
allow init proc_pressure_mem:file { rw_file_perms setattr };
|
||||
|
Loading…
Reference in New Issue
Block a user