exynos9610: Rename chargeonly_data_file to chargeonly_vendor_data_file lineage-20
authorNolen Johnson <johnsonnolen@gmail.com>
Wed, 6 Mar 2024 02:54:53 +0000 (21:54 -0500)
committerNolen Johnson <johnsonnolen@gmail.com>
Wed, 6 Mar 2024 03:24:25 +0000 (03:24 +0000)
* 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)

sepolicy/vendor/charge_only.te
sepolicy/vendor/file.te
sepolicy/vendor/file_contexts

index 569747a46e3ffc6ea4ace71770eee760d985289b..84cd17ad640547fa5ac4656ce8e213f24c1cac6c 100644 (file)
@@ -2,8 +2,8 @@ type charge_only, domain;
 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
index 5d72c8ab9920ff84a330a03a334e649ccec8aa67..33ec7d1def3968b1f6948941967a6238b1a70076 100644 (file)
@@ -1,6 +1,6 @@
 # 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;
index dee77b2ca64bc1a40d3946193916aa3bac1858fd..d3c4bcb425e02b63b0283d60a7f25bb480f8f744 100644 (file)
@@ -18,7 +18,7 @@
 /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