* For some magical reason, the naming (and not just associations)
matter as of a few days ago - no clue why.
Change-Id: I6cf12b455dbf460a9be607d796af3536093e8427
(cherry picked from commit
3a2792b06d1918f9822f346a9961bef377f972a0)
type charge_only_exec, exec_type, vendor_file_type, file_type;
init_daemon_domain(charge_only)
-allow charge_only chargeonly_data_file:dir rw_dir_perms;
-allow charge_only chargeonly_data_file:file create_file_perms;
+allow charge_only chargeonly_vendor_data_file:dir rw_dir_perms;
+allow charge_only chargeonly_vendor_data_file:file create_file_perms;
allow charge_only {
graphics_device
# data types
type camera_vendor_data_file, file_type, data_file_type;
-type chargeonly_data_file, file_type, data_file_type;
+type chargeonly_vendor_data_file, file_type, data_file_type;
type mediadrm_vendor_data_file, file_type, data_file_type;
type misc_vendor_data_file, file_type, data_file_type;
type rild_vendor_data_file, file_type, data_file_type;
/data/vendor/sensor(/.*)? u:object_r:sensor_vendor_data_file:s0
/data/vendor/rild(/.*)? u:object_r:rild_vendor_data_file:s0
/data/nfc(/.*)? u:object_r:nfc_data_file:s0
-/data/chargeonlymode(/.*)? u:object_r:chargeonly_data_file:s0
+/data/vendor/chargeonlymode(/.*)? u:object_r:chargeonly_vendor_data_file:s0
##########################
# Devices