diff options
-rw-r--r-- | sepolicy/vendor/file_contexts | 3 | ||||
-rw-r--r-- | sepolicy/vendor/init.te | 5 | ||||
-rw-r--r-- | sepolicy/vendor/vold.te | 2 |
3 files changed, 9 insertions, 1 deletions
diff --git a/sepolicy/vendor/file_contexts b/sepolicy/vendor/file_contexts index dda8a34..70a1f9a 100644 --- a/sepolicy/vendor/file_contexts +++ b/sepolicy/vendor/file_contexts @@ -43,6 +43,9 @@ # IR /dev/ir_spi u:object_r:ir_spi_device:s0 +# Label read_ahead_kb in /data partition +/sys/devices/platform/soc/4804000.ufshc/host0/target0:0:0/0:0:0:0/block/sda/queue/read_ahead_kb u:object_r:vendor_sysfs_scsi_host:s0 + # Mlipay /vendor/bin/mlipayd@1.1 u:object_r:hal_mlipay_default_exec:s0 diff --git a/sepolicy/vendor/init.te b/sepolicy/vendor/init.te index 5be36d2..40d8ce9 100644 --- a/sepolicy/vendor/init.te +++ b/sepolicy/vendor/init.te @@ -1 +1,4 @@ -allow init adsprpcd_file:file mounton;
\ No newline at end of file +allow init adsprpcd_file:file mounton; + +# Allow init to set read_ahead_kb on /data partition +allow init vendor_sysfs_scsi_host:file w_file_perms;
\ No newline at end of file diff --git a/sepolicy/vendor/vold.te b/sepolicy/vendor/vold.te new file mode 100644 index 0000000..af3931b --- /dev/null +++ b/sepolicy/vendor/vold.te @@ -0,0 +1,2 @@ +# Allow vold to set read_ahead_kb on /data partition +allow vold vendor_sysfs_scsi_host:file w_file_perms;
\ No newline at end of file |