Messages in this thread | | | Date | Mon, 24 Sep 2012 09:55:34 -0500 | From | Serge Hallyn <> | Subject | Re: [PATCH 05/14] userns: Convert hostfs to use kuid and kgid where appropriate |
| |
Quoting Richard Weinberger (richard@nod.at): > Am 21.09.2012 02:28, schrieb Eric W. Biederman: > > From: "Eric W. Biederman" <ebiederm@xmission.com> > > > > Cc: Jeff Dike <jdike@addtoit.com> > > Cc: Richard Weinberger <richard@nod.at> > > Acked-by: Serge Hallyn <serge.hallyn@canonical.com> > > Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> > > --- > > Looks sane to me. > > Acked-by: Richard Weinberger <richard@nod.at> > > BTW: How you do test your user namespace patches?
I've got a few specific tests of the new functionality in the usernstest.c in the nsexec package at https://launchpad.net/~serge-hallyn/+archive/userns-natty/+sourcepub/2530252/+listing-archive-extra . Of course LTP already has a good set of test cases for the regular functionality.
> Is there a generic way to compare/verify uids within a namespace vs. the initial namespace?
It's good to look at output of 'id' in the task versus 'ps' from the initial ns, as well as create a file and look at the stat output from both namespaces.
-serge
| |