mirror of
https://github.com/Divested-Mobile/DivestOS-Build.git
synced 2024-09-08 02:22:16 +00:00
23 lines
800 B
Diff
23 lines
800 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Daniel Micay <danielmicay@gmail.com>
|
|
Date: Thu, 13 Dec 2018 09:26:25 -0500
|
|
Subject: [PATCH] increase max_map_count for hardened malloc
|
|
|
|
---
|
|
rootdir/init.rc | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/rootdir/init.rc b/rootdir/init.rc
|
|
index e9fba7989..c175bc4ac 100644
|
|
--- a/rootdir/init.rc
|
|
+++ b/rootdir/init.rc
|
|
@@ -697,6 +697,8 @@ on boot
|
|
chown root system /sys/block/zram0/writeback
|
|
chmod 0664 /sys/block/zram0/writeback
|
|
|
|
+ write /proc/sys/vm/max_map_count 524240
|
|
+
|
|
# F2FS tuning. Set cp_interval larger than dirty_expire_centisecs, 30 secs,
|
|
# to avoid power consumption when system becomes mostly idle. Be careful
|
|
# to make it too large, since it may bring userdata loss, if they
|