OpenVZ Forum


Home » Mailing lists » Devel » [PATCH 0/4] user namespaces: introduction
[PATCH 0/4] user namespaces: introduction [message #26567] Mon, 28 January 2008 19:08 Go to previous message
serue is currently offline  serue
Messages: 750
Registered: February 2006
Senior Member
Here is a small patchset I've been sitting on for awhile
to make signaling mostly subject to user namespaces.  In
particular,

	1. store user_namespace in user struct
	2. introduce CAP_NS_OVERRIDE
	3. require CAP_NS_OVERRIDE to signal another user namespace

The first step should have been done all along.  Else wouldn't
a hash collision on (ns1, uid) and (ns2, uid), however unlikely,
give us wrong results at uid_hash_find()?

The main remaining signaling+userns issue is of course the
siginfo.  Tacking a userns onto siginfo is a pain due to
lifetime mgmt issues.  I haven't decided whether to just
catch all the callers and fake uid=0 if user namespaces
aren't the same, introduce some unique non-refcounted id to
represent (user,user_ns), or find some other way to deal with
it.

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
Previous Topic: [PATCH 1/2] change clone_flags type to u64
Next Topic: [PATCH 2/2] extend clone_flags using parent_tidptr argument
Goto Forum:
  


Current Time: Mon Sep 08 15:20:16 GMT 2025

Total time taken to generate the page: 0.06042 seconds