OpenVZ Forum


Home » Mailing lists » Devel » [RFC] [PATCH 0/8] user namespaces: add ns to user_struct
[RFC] [PATCH 0/8] user namespaces: add ns to user_struct [message #24684] Fri, 07 December 2007 19:12 Go to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
I'm working toward fixing up some of the remaining uid==0 and
uid1==uid2 checks, and beginning to restrict capabilities within
namespaces.

This patchset starts to do that by

	1. improving per-ns user_struct storing
	2. introducing CAP_NS_OVERRIDE
	3. requiring CAP_NS_OVERRIDE to signal another user namespace
	4. remove a few uid==0 checks

Especially the last 3 patches are a definite security improvement in
the face of user namespaces.

The next steps would be

	* add user_ns to siginfo
	* signals delivered to another userns (like sigchld)
	  send uid 0.
	* fix up more uid and gid checks (sigh)
	* convert struct key_user?
	* introduce uid aliases
		* per-process keyring
		* stores (user_ns,uid) keys
		* allows process which is really (user_ns1, uid1)
		  to act as though it were (user_ns2, uid2) on
		  objects in user_ns2
	* convert struct kstat (may have serious lifetime issues)

That should leave us in a reasonable shape to start considering how
to really handle file access.

I still have a set of patches which tag struct inode with user_ns
and patch ext2+ext3.  But it's at the end of my patch set for now.

Comments welcome, on these patches, on the outlined next steps,
or on anything I'm forgetting.  

(Against 2.6.24-rc3-mm2)

thanks,
-serge
_______________________________________________
Containers mailing list
Containers@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: [PATCH] Remove unused define from loopback driver
Next Topic: [RFC] [PATCH -mm] agp: remove uid comparison as security check
Goto Forum:
  


Current Time: Tue Sep 09 14:55:32 GMT 2025

Total time taken to generate the page: 0.07432 seconds