Revert "YaGL: Set MLOCK limit to infinity. We used to do this via ulimit -SHl unlimit... 83/11083/1
authorStanislav Vorobiov <s.vorobiov@samsung.com>
Mon, 30 Sep 2013 11:40:09 +0000 (15:40 +0400)
committerStanislav Vorobiov <s.vorobiov@samsung.com>
Thu, 17 Oct 2013 08:18:43 +0000 (12:18 +0400)
This reverts commit df489d0d19567678cda269f571a6c91cbbdf3e66.

Change-Id: I7be7799a3a001d29cfd08337bcaab5f0f5c1684a

include/linux/resource.h

index 5d659a50530bc42a2b9cb38d8338cd0d18671e46..d01c96c1966e2724460eeaaef3bdd6c522fc7bda 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    RLIM_INFINITY/*((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)*/
+#define MLOCK_LIMIT    ((PAGE_SIZE > 64*1024) ? PAGE_SIZE : 64*1024)
 
 /*
  * Due to binary compatibility, the actual resource numbers