Re: [patch] mlock-as-nonroot revisted

From: Andrea Arcangeli
Date: Tue Aug 03 2004 - 16:09:17 EST


On Tue, Aug 03, 2004 at 04:55:49PM -0400, Rik van Riel wrote:
> @@ -198,9 +201,11 @@
> return error;
> }
>
> - if (shmflg & SHM_HUGETLB)
> + if (shmflg & SHM_HUGETLB) {
> + /* hugetlb_zero_setup takes care of mlock user accounting */
> file = hugetlb_zero_setup(size);
> - else {
> + shp->mlock_user = current->user;
> + } else {
> sprintf (name, "SYSV%08x", key);
> file = shmem_file_setup(name, size, VM_ACCOUNT);
> }

where do you change mlock_user in chown?
-
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/