X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;ds=sidebyside;f=include%2Flinux%2Fresource.h;h=21a86cb6acdb63a95f91da65872b3643d700b2ff;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=94494789e0af5c146b1a9d12436fcd8aa1361c2e;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/include/linux/resource.h b/include/linux/resource.h index 94494789e..21a86cb6a 100644 --- a/include/linux/resource.h +++ b/include/linux/resource.h @@ -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..