Re: Rationale for RLIMIT_MEMLOCK?

From: Edgar Toernig
Date: Tue Jan 24 2006 - 18:18:32 EST


Theodore Ts'o wrote:
>
> ... proposed a hack where mlockall() would adjust RLIMIT_MEMLOCK.
> Yes, no question it's a hack and a special case; the question is
> whether cure or the disease is worse.

What about exec? The memory locks are removed on exec but with that
hack the raised limit would stay. Looks like a security bug.

Ciao, ET.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/