From 6cf8efcf5ff80ce38120360999165455824cc0c2 Mon Sep 17 00:00:00 2001 From: Pulkit077 Date: Wed, 12 Apr 2023 15:40:54 +0300 Subject: [PATCH] sm6150-common: sepolicy: Label UFS discard_max_bytes * Allow init.rc to write to discard_max_bytes Change-Id: I91e2b6d1471eeaa91e1dd6fe9d26257de224405f Signed-off-by: Pranav Vashi Signed-off-by: therealmharc --- sepolicy/vendor/file_contexts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index b0ebcfc..6f98849 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -74,6 +74,9 @@ # Remosaic /vendor/bin/remosaic_daemon u:object_r:remosaic_daemon_exec:s0 +# UFS discard_max_bytes +/sys/devices/platform/soc/1d84000.ufshc/host0/target0:0:0/0:0:0:0/block/sda/queue/discard_max_bytes u:object_r:vendor_sysfs_mmc_host:s0 + # WiFi /vendor/bin/nv_mac u:object_r:vendor_wcnss_service_exec:s0