From df489d0d19567678cda269f571a6c91cbbdf3e66 Mon Sep 17 00:00:00 2001 From: Stanislav Vorobiov Date: Fri, 12 Apr 2013 16:18:37 +0400 Subject: [PATCH] YaGL: Set MLOCK limit to infinity. We used to do this via ulimit -SHl unlimited, but since nowadays tizen uses systemd it's not possible to set ulimit system wide, so we do it here. This is temporary anyway, YaGL doesn't need to use mlock technically, so this limitation will be removed soon --- include/linux/resource.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/resource.h b/include/linux/resource.h index d01c96c1966e..5d659a50530b 100644 --- a/include/linux/resource.h +++ b/include/linux/resource.h @@ -68,7 +68,7 @@ struct rlimit64 { * GPG2 wants 64kB of mlocked memory, to make sure pass phrases * and other sensitive information are never written to disk. */ -#define MLOCK_LIMIT ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024) +#define MLOCK_LIMIT RLIM_INFINITY/*((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)*/ /* * Due to binary compatibility, the actual resource numbers -- 2.34.1