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
This commit is contained in:
Jeff Vander Stoep 2018-01-02 16:12:22 -08:00 committed by Jeffrey Vander Stoep
parent 756dd574d5
commit 99c65df3ed

View file

@ -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