Re: [patch] mlock-as-nonroot revisted

From: Arjan van de Ven
Date: Tue Aug 03 2004 - 16:47:53 EST


On Tue, Aug 03, 2004 at 11:36:34PM +0200, Andrea Arcangeli wrote:
> On Tue, Aug 03, 2004 at 11:13:39PM +0200, Arjan van de Ven wrote:
> > The user that mlock'd gets to pay for it, and gets his credits back at
> > munlock. Chown doesn't really matter in that regard..... The thing that does
>
> what? he cannot get credits when it munlock if this is hugetlbfs. If it
> does you're again into the insecure DoS scenario.

not if you keep track of who locked in the first place and give the credit
back to *that* user (struct).

Attachment: pgp00000.pgp
Description: PGP signature