OpenVZ Forum


Home » Mailing lists » Devel » Re: [RFC][PATCH 1/2] add user namespace [try #2]
Re: [RFC][PATCH 1/2] add user namespace [try #2] [message #16540] Mon, 28 August 2006 18:10 Go to next message
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
Cedric Le Goater [clg@fr.ibm.com] wrote:
| This patch adds the user namespace.
| 
| Basically, it allows a process to unshare its user_struct table,
| resetting at the same time its own user_struct and all the associated
| accounting.
| 
| A new root user (uid == 0) is added to the user namespace upon
| creation.  Such root users have full privileges and it seems that
| theses privileges should be controlled through some means (process
| capabilities ?)
| 
| Changes [try #2]
| 
| 	- removed struct user_namespace* argument from find_user()
| 	- added a root_user per user namespace
| 
| Signed-off-by: Cedric Le Goater <clg@fr.ibm.com>
| Cc: Andrew Morton <akpm@osdl.org>
| Cc: Kirill Korotaev <dev@openvz.org>
| Cc: Eric W. Biederman <ebiederm@xmission.com>
| Cc: Herbert Poetzl <herbert@13thfloor.at>
| Cc: Serge E. Hallyn <serue@us.ibm.com>
| Cc: Dave Hansen <haveblue@us.ibm.com>
| 
| ---
|  include/linux/init_task.h |    2
|  include/linux/nsproxy.h   |    2
|  include/linux/sched.h     |    4 +
|  include/linux/user.h      |   46 +++++++++++++++
|  init/Kconfig              |    8 ++
|  kernel/fork.c             |    2
|  kernel/nsproxy.c          |   15 ++++-
|  kernel/sys.c              |    5 +
|  kernel/user.c             |  133
| ++++++++++++++++++++++++++++++++++++++++++----
|  9 files changed, 203 insertions(+), 14 deletions(-)

The changes look fine to me :-) It may help though to put
the changes to header files first.

Also is there a way to force diffstat to list files in same
order as in the patch ?
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [RFC][PATCH 1/2] add user namespace [try #2] [message #16541 is a reply to message #16540] Mon, 28 August 2006 18:21 Go to previous message
Dave Hansen is currently offline  Dave Hansen
Messages: 240
Registered: October 2005
Senior Member
On Mon, 2006-08-28 at 11:10 -0700, Sukadev Bhattiprolu wrote:
> 
> Also is there a way to force diffstat to list files in same
> order as in the patch ? 

-u unsorted 

-- Dave

_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: Re: [RFC][PATCH 1/2] add user namespace [try #2]
Next Topic: Re: pspace child_reaper
Goto Forum:
  


Current Time: Thu Aug 15 05:39:33 GMT 2024

Total time taken to generate the page: 0.02673 seconds