RM6785: sepolicy: Allow init to write discard_max_bytes

Change-Id: I44bf19269841dd0c682d1375d6a6b6d166481667
diff --git a/sepolicy/vendor/file.te b/sepolicy/vendor/file.te
index 712145d..cbb09a3 100644
--- a/sepolicy/vendor/file.te
+++ b/sepolicy/vendor/file.te
@@ -4,6 +4,7 @@
 type proc_sensor_feature, fs_type, proc_type;
 type proc_tp, fs_type, proc_type;
 type sysfs_fingerprint, fs_type, sysfs_type;
+type sysfs_mmc_host, fs_type, sysfs_type;
 type sysfs_otg_switch, fs_type, sysfs_type;
 type sysfs_sia81xx, fs_type, sysfs_type;
 type sysfs_virtual_sensor, fs_type, sysfs_type;
diff --git a/sepolicy/vendor/genfs_contexts b/sepolicy/vendor/genfs_contexts
index 6e23c9d..5e52d4c 100644
--- a/sepolicy/vendor/genfs_contexts
+++ b/sepolicy/vendor/genfs_contexts
@@ -12,6 +12,7 @@
 genfscon sysfs /devices/platform/sia81xx@L/is_81xx                        u:object_r:sysfs_sia81xx:s0
 genfscon sysfs /devices/virtual/oplus_sensor/m_virtual_sensor_misc        u:object_r:sysfs_virtual_sensor:s0
 genfscon sysfs /kernel/thunderquake_engine/level                          u:object_r:sysfs_vibrator:s0
+genfscon sysfs /devices/platform/bootdevice/host0/target0:0:0/0:0:0:2/block/sdc/queue/discard_max_bytes u:object_r:sysfs_mmc_host:s0
 
 genfscon sysfs /devices/platform/10228000.gce/wakeup/wakeup0                                                    u:object_r:sysfs_wakeup:s0
 genfscon sysfs /devices/platform/mt_charger/power_supply/charger/wakeup1                                        u:object_r:sysfs_wakeup:s0
diff --git a/sepolicy/vendor/init.te b/sepolicy/vendor/init.te
index 1a7d359..eb90c3b 100644
--- a/sepolicy/vendor/init.te
+++ b/sepolicy/vendor/init.te
@@ -1 +1,2 @@
 allow init sysfs_otg_switch:file rw_file_perms;
+allow init sysfs_mmc_host:file rw_file_perms;