All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] [PATCH 0/2] namespace enter through hijack
@ 2007-08-29 20:04 Serge E. Hallyn
       [not found] ` <20070829200420.GA4870-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Serge E. Hallyn @ 2007-08-29 20:04 UTC (permalink / raw)
  To: containers-qjLDD68F18O7TbgM5vRIOg

This patchset implements namespace entering by forcing a task in
the target namespace to clone itself.  This has some advantages
over just replacing a random task's namespace pointers to the
target ones.  In particular

	1. If switching pid namespaces, the stack of upids is
	   automatically correctly generated.
	2. Security context is inherited from the target
	   task.  Assuming a security module which labels
	   data based on the task security context, like selinux,
	   this may prevent severe mislabeling of container data by
	   an inadvertant host system administrator action.
	   Whether that works or not will still depend on the
	   policy and the task cloned.

While this version takes a pid of a process to clone (for
convenience of prototyping) we may prefer to use a ns_container
name and choose one of it's tasks, to prevent pid wraparound.

Tested and 'works for me', but at the moment I'm just sending
this out for discussion.

Alternatives to this include bind_ns()+switch_ns() by Cedric
and the ns_container namespace entering enhancements I've
previously sent.

thanks,
-serge

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2007-09-10 19:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-29 20:04 [RFC] [PATCH 0/2] namespace enter through hijack Serge E. Hallyn
     [not found] ` <20070829200420.GA4870-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-08-29 20:04   ` [RFC] [PATCH 1/2] namespace enter: introduce do_fork_task() Serge E. Hallyn
2007-08-29 20:05   ` [RFC] [PATCH 2/2] namespace enter: introduce sys_hijack (v3) Serge E. Hallyn
     [not found]     ` <20070829200515.GC4870-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-03  8:02       ` [Devel] " Paul Menage
     [not found]         ` <6599ad830709030102w6b5084d4w4a8a9a654e421527-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-09-04 12:50           ` Serge E. Hallyn
     [not found]             ` <20070904125019.GA22410-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-04 19:06               ` Dave Hansen
2007-09-04 19:32                 ` Serge E. Hallyn
     [not found]                   ` <20070904193256.GA494-6s5zFf/epYLPQpwDFJZrxKsjOiXwFzmk@public.gmane.org>
2007-09-05 16:15                     ` Paul Menage
     [not found]                       ` <6599ad830709050915r5c4fb424ha2081c7d8596aac6-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2007-09-10 19:17                         ` Serge E. Hallyn

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.