From 5f2aba5bc67c129861f3daf3625ce9387e254267 Mon Sep 17 00:00:00 2001 From: Chris Goldsworthy Date: Tue, 20 Jun 2023 21:08:59 -0700 Subject: [PATCH] sm8550-common: init: Reduce mlock() limit to 64 KB Reduce the per-process limit of the mlock() family of system calls to 64 KB on account of a new CTS requirement. Change-Id: I211668956bb6098e87cb7ef68bb7f1510d93d76f --- init/init.qcom.rc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init/init.qcom.rc b/init/init.qcom.rc index 4a6eb9e..bcb8d36 100644 --- a/init/init.qcom.rc +++ b/init/init.qcom.rc @@ -103,8 +103,8 @@ on init on post-fs on early-boot - # set RLIMIT_MEMLOCK to 64MB - setrlimit 8 67108864 67108864 + # set RLIMIT_MEMLOCK to 64KB + setrlimit 8 65536 65536 exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qcom.early_boot.sh exec u:r:vendor_qti_init_shell:s0 -- /vendor/bin/init.qti.can.sh setprop ro.sf.lcd_density ${vendor.display.lcd_density}