Merge "Setting up SELinux policy for Emergency number database"
This commit is contained in:
commit
584234e8b1
4 changed files with 12 additions and 0 deletions
|
@ -26,3 +26,6 @@ type linkerconfig_file, file_type;
|
|||
|
||||
# /data/gsi/ota
|
||||
type ota_image_data_file, file_type, data_file_type, core_data_file_type;
|
||||
|
||||
# /data/misc/emergencynumberdb
|
||||
type emergency_data_file, file_type, data_file_type, core_data_file_type;
|
||||
|
|
|
@ -509,6 +509,7 @@
|
|||
/data/misc/carrierid(/.*)? u:object_r:radio_data_file:s0
|
||||
/data/misc/dhcp(/.*)? u:object_r:dhcp_data_file:s0
|
||||
/data/misc/dhcp-6\.8\.2(/.*)? u:object_r:dhcp_data_file:s0
|
||||
/data/misc/emergencynumberdb(/.*)? u:object_r:emergency_data_file:s0
|
||||
/data/misc/gatekeeper(/.*)? u:object_r:gatekeeper_data_file:s0
|
||||
/data/misc/incidents(/.*)? u:object_r:incident_data_file:s0
|
||||
/data/misc/installd(/.*)? u:object_r:install_data_file:s0
|
||||
|
|
|
@ -8,3 +8,7 @@ read_runtime_log_tags(radio)
|
|||
get_prop(radio, time_prop)
|
||||
|
||||
allow radio uce_service:service_manager find;
|
||||
|
||||
# Manage /data/misc/emergencynumberdb
|
||||
allow radio emergency_data_file:dir r_dir_perms;
|
||||
allow radio emergency_data_file:file r_file_perms;
|
||||
|
|
|
@ -446,6 +446,10 @@ allow system_server heapdump_data_file:file create_file_perms;
|
|||
allow system_server adb_keys_file:dir create_dir_perms;
|
||||
allow system_server adb_keys_file:file create_file_perms;
|
||||
|
||||
# Manage /data/misc/emergencynumberdb
|
||||
allow system_server emergency_data_file:dir create_dir_perms;
|
||||
allow system_server emergency_data_file:file create_file_perms;
|
||||
|
||||
# Manage /data/misc/network_watchlist
|
||||
allow system_server network_watchlist_data_file:dir create_dir_perms;
|
||||
allow system_server network_watchlist_data_file:file create_file_perms;
|
||||
|
|
Loading…
Reference in a new issue