diff options
| author | Divyanand Rangu <drangu@codeaurora.org> | 2020-01-29 18:54:02 +0530 |
|---|---|---|
| committer | Divyanand Rangu <drangu@codeaurora.org> | 2020-02-10 15:10:08 +0530 |
| commit | c827b8f5b061412d0167720ff362d7e10d4142f7 (patch) | |
| tree | fa5d0ffeea128fc1ed55e3103430d88cbfcbb938 | |
| parent | caa5fec005aa545596abc02d9414028125f93b55 (diff) | |
permit init_shell to update read_ahead_kb
allow init_shell to have write permission on
‘mmc_host’ node to have ‘read_ahead_kb’ values
set from post_boot
Change-Id: If6f7dc2cc07fcdaad33900989ea204d96a2be3e9
| -rw-r--r-- | qva/vendor/bengal/file_contexts | 6 | ||||
| -rw-r--r-- | qva/vendor/common/init_shell.te | 5 |
2 files changed, 11 insertions, 0 deletions
diff --git a/qva/vendor/bengal/file_contexts b/qva/vendor/bengal/file_contexts index 0c1b4cbd..97e70db4 100644 --- a/qva/vendor/bengal/file_contexts +++ b/qva/vendor/bengal/file_contexts @@ -172,3 +172,9 @@ # Bluetooth LAZY HAL /vendor/bin/hw/android\.hardware\.bluetooth@1\.0-service-qti-lazy u:object_r:hal_bluetooth_default_exec:s0 + +################################### +# sysfs files +# +/sys/devices/virtual/block/dm-[0-6]/queue/read_ahead_kb u:object_r:sysfs_mmc_host:s0 + diff --git a/qva/vendor/common/init_shell.te b/qva/vendor/common/init_shell.te index 2c653aa0..b9f46de2 100644 --- a/qva/vendor/common/init_shell.te +++ b/qva/vendor/common/init_shell.te @@ -53,3 +53,8 @@ set_prop(qti_init_shell, vendor_coresight_prop) #allow configuring slub debug options allow qti_init_shell sysfs_slab_zshandle_storeuser:file w_file_perms; allow qti_init_shell sysfs_slab_zspage_storeuser:file w_file_perms; + +allow qti_init_shell { + sysfs_mmc_host +}:file w_file_perms; + |
