android_device_samsung_msm8.../sepolicy/common/vendor_init.te
Kevin F. Haggerty 631007d58c
msm8974-common: sepolicy: Update for move of init.{qcom,target}.rc to /vendor
Change-Id: Ic0042ed52e7aeb3faba856411fd0a1b298446125
2020-09-06 04:12:09 -06:00

21 lines
635 B
Plaintext

# This really is necessary for init.qcom.rc to manually restorecon the
# /data/data/com.android.providers.telephony/(databases|shared_prefs)
# symlinks. Without the manual restorecon, we would have to allow rild
# to read any system_data_file:lnk_file.
selinux_check_context(vendor_init)
allow vendor_init {
packages_list_file
seapp_contexts_file
}:file r_file_perms;
allow vendor_init {
radio_data_file
system_data_file
}:lnk_file create_file_perms;
allow vendor_init radio_data_file:lnk_file relabelto;
allow vendor_init system_data_file:lnk_file relabelfrom;
allow vendor_init wifi_data_file:file create_file_perms;