Skip to content
Snippets Groups Projects
Commit 99c65df3 authored by Jeff Vander Stoep's avatar Jeff Vander Stoep Committed by Jeffrey Vander Stoep
Browse files

init: allow read of /sys/devices/virtual/block/zram

Commit erroneously 55039509 removed init's read access to
/sys/devices/virtual/block/zram*. Restore access.

Test: cat /proc/meminfo
    ...
    SwapTotal:        524284 kB
    SwapFree:         524284 kB
    ...
Bug: 71510938

Change-Id: I20268168caa541a7dafa1e32339641095e1e524b
parent 756dd574
No related branches found
No related tags found
No related merge requests found
......@@ -305,13 +305,16 @@ allow init {
sysfs_android_usb
sysfs_leds
sysfs_power
sysfs_zram
}:file w_file_perms;
allow init {
sysfs_dt_firmware_android
}:file r_file_perms;
allow init {
sysfs_zram
}:file rw_file_perms;
# init chmod/chown access to /sys files.
allow init {
sysfs_android_usb
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment