diff --git a/domain.te b/domain.te index 701297f9d9a0ba04a05234c7f0c49df938b89dc4..3628f323671ecb9bea99e363b24d6e5d1478fa1e 100644 --- a/domain.te +++ b/domain.te @@ -89,6 +89,9 @@ allow domain cache_file:dir r_dir_perms; allow domain cache_file:file { getattr read }; allow domain cache_file:lnk_file read; +# Read timezone related information +r_dir_file(domain, zoneinfo_data_file) + # For /acct/uid/*/tasks. allow domain cgroup:dir { search write }; allow domain cgroup:file w_file_perms; diff --git a/file.te b/file.te index e4f0a1055730eb4261150de67e7c5a193f31d4ec..d0f79ac7a957e4a856e61628fdb63d90bcf4b00a 100644 --- a/file.te +++ b/file.te @@ -65,6 +65,7 @@ type radio_data_file, file_type, data_file_type; type systemkeys_data_file, file_type, data_file_type; type vpn_data_file, file_type, data_file_type; type wifi_data_file, file_type, data_file_type; +type zoneinfo_data_file, file_type, data_file_type; # Compatibility with type names used in vanilla Android 4.3 and 4.4. typealias audio_data_file alias audio_firmware_file; diff --git a/file_contexts b/file_contexts index 52964996094389e130484570ad0d67701e50e25b..45823ef38cda9b1cf31fe36bab8e6579325fb114 100644 --- a/file_contexts +++ b/file_contexts @@ -180,6 +180,7 @@ /data/misc/systemkeys(/.*)? u:object_r:systemkeys_data_file:s0 /data/misc/vpn(/.*)? u:object_r:vpn_data_file:s0 /data/misc/wifi(/.*)? u:object_r:wifi_data_file:s0 +/data/misc/zoneinfo(/.*)? u:object_r:zoneinfo_data_file:s0 # App sandboxes /data/data/.* u:object_r:app_data_file:s0