Setup group and permission of /sys/block/zram0 files at mmd.rc
mmd access triggers of "writeback", "recompress", "idle" files under
/sys/block/zram0/.
mmd also updates "writeback_limit" to control pages to be written.
/sys/block/zram0/idle and /sys/block/zram0/writeback are used by
existing ZramWriteback.java in system_server and
"system/core/rootdir/init.rc" configures the group and permissions of
them. This copies the configurations to mmd.rc so that the files are
configured correctly with/without mmd.rc. Duplicated configuration has
no effect and safe.
Bug: 375432468
Test: confirm file access succeeds by strace
Change-Id: I47581d1afa45e6160ba10da68ad9631bd525d4ce
1 file changed