Re: [patch] mlock-as-nonroot revisted

From: Chris Wright
Date: Tue Aug 03 2004 - 16:52:03 EST


* Rik van Riel (riel@xxxxxxxxxx) wrote:
> On Thu, 29 Jul 2004, Chris Wright wrote:
>
> > 2) mlock_user isn't ever set, so SHM_LOCK accounting looks broken
> > (trivial to fix).
>
> Should be fixed by the patch below. Does this look
> acceptable ?

Yeah, sure does. Could also pass the cached user struct instead of
current->user to shmem_lock, might fit in 80 cols. ;-)

thanks,
-chris
--
Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net
-
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/