YaGL: Set MLOCK limit to infinity. We used to do this via ulimit -SHl unlimited,...
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Fri, 12 Apr 2013 12:18:37 +0000 (16:18 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 15 Apr 2013 10:29:05 +0000 (14:29 +0400)
include/linux/resource.h

index d01c96c1966e2724460eeaaef3bdd6c522fc7bda..5d659a50530bc42a2b9cb38d8338cd0d18671e46 100644 (file)
@@ -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