From: Nolen Johnson Date: Wed, 6 Mar 2024 02:54:53 +0000 (-0500) Subject: exynos9610: Rename chargeonly_data_file to chargeonly_vendor_data_file X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=7db54fedfb9517f67ea2efe3b93366624f493f15;p=GitHub%2FLineageOS%2Fandroid_device_motorola_exynos9610-common.git exynos9610: Rename chargeonly_data_file to chargeonly_vendor_data_file * 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) --- diff --git a/sepolicy/vendor/charge_only.te b/sepolicy/vendor/charge_only.te index 569747a..84cd17a 100644 --- a/sepolicy/vendor/charge_only.te +++ b/sepolicy/vendor/charge_only.te @@ -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 diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te index 5d72c8a..33ec7d1 100644 --- a/sepolicy/vendor/file.te +++ b/sepolicy/vendor/file.te @@ -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; diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index dee77b2..d3c4bcb 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -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