vserver 1.9.3
[linux-2.6.git] / include / linux / resource.h
index 9449478..21a86cb 100644 (file)
@@ -55,6 +55,12 @@ struct rlimit {
  */
 #define _STK_LIM       (8*1024*1024)
 
+/*
+ * GPG wants 32kB of mlocked memory, to make sure pass phrases
+ * and other sensitive information are never written to disk.
+ */
+#define MLOCK_LIMIT    (8 * PAGE_SIZE)
+
 /*
  * Due to binary compatibility, the actual resource numbers
  * may be different for different linux versions..