Enable zram swap
It fixes a kernel panic on DB845c and RB5 while running
AOSP/external/stressapptest due to "System is deadlocked
on memory".
It also fixes a similar crash reported on RB5 while running CtsBionicTestCases, https://bugs.linaro.org/show_bug.cgi?id=6036,
while we are still diagnosing that crash for a proper fix.
Signed-off-by: Amit Pundir <amit.pundir@linaro.org>
Change-Id: I81af210a50526050c00b65f55e85cf360fc39622
diff --git a/sepolicy/file_contexts b/sepolicy/file_contexts
index 82370f6..660539c 100644
--- a/sepolicy/file_contexts
+++ b/sepolicy/file_contexts
@@ -5,6 +5,7 @@
/dev/block/platform/soc@0/1d84000\.ufshc/by-name/super u:object_r:super_block_device:s0
/dev/block/platform/soc@0/1d84000\.ufshc/by-name/userdata u:object_r:userdata_block_device:s0
/dev/block/platform/soc@0/1d84000\.ufshc/by-name/misc u:object_r:misc_block_device:s0
+/dev/block/zram0 u:object_r:swap_block_device:s0
/dev/dri u:object_r:dri_device:s0
/dev/dri/card0 u:object_r:graphics_device:s0