public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: "Serge E. Hallyn" <serue@us.ibm.com>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: linux-kernel@vger.kernel.org, containers@lists.osdl.org
Subject: Re: [Patch 0/3] posix mqueue namespace (v14)
Date: Tue, 27 Jan 2009 15:20:26 -0600	[thread overview]
Message-ID: <20090127212025.GA11978@us.ibm.com> (raw)
In-Reply-To: <20090126152832.1918efed.akpm@linux-foundation.org>

Quoting Andrew Morton (akpm@linux-foundation.org):
> On Fri, 16 Jan 2009 20:02:48 -0600
> "Serge E. Hallyn" <serue@us.ibm.com> wrote:
> 
> > IPC namespaces are completely disjoint id->object mappings.
> > A task can pass CLONE_NEWIPC to unshare and clone to get
> > a new, empty, IPC namespace.  Until now this has supported
> > SYSV IPC.
> > 
> > Most Posix IPC is done in userspace.  The posix mqueue
> > support, however, is implemented on top of the mqueue fs.
> > 
> > This patchset implements multiple mqueue fs instances,
> > one per IPC namespace to be precise.
> > 
> > To create a new ipc namespace with posix mq support, you
> > should now:
> > 
> > 	unshare(CLONE_NEWIPC|CLONE_NEWNS);
> > 	umount /dev/mqueue
> > 	mount -t mqueue mqueue /dev/mqueue
> > 
> > It's perfectly valid to do vfs operations on files
> > in another ipc_namespace's /dev/mqueue, but any use
> > of mq_open(3) and friends will act in your own ipc_ns.
> > After the ipc namespace has exited, you can still
> > unlink but no longer create files in that fs (since
> > accounting is carried.
> > 
> > Changelog:
> > 	v14: (Jan 16 2009) port to linux-next
> > 	v13: (Dec 28 2009)
> > 	   1. addressed comments by Dave and Suka
> > 	   2. ported Cedric's patch to make posix mq sysctls
> > 	      per-namespace
> > 
> > When convenient, it would be great to see this tested
> > in -mm.
> 
> hm. Who is going to test it?

Everyone using posix mq with an -mm kernel :)

There are ltp testcases which I hope can be pushed once these
patches appear headed upstream.

thanks,
-serge

      reply	other threads:[~2009-01-27 21:21 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-17  2:02 [Patch 0/3] posix mqueue namespace (v14) Serge E. Hallyn
2009-01-17  2:03 ` [PATCH 1/3] mqueue ns: move mqueue_mnt into struct ipc_namespace Serge E. Hallyn
2009-01-26 23:28   ` Andrew Morton
2009-01-17  2:03 ` [PATCH 2/3] ipc namespaces: implement support for posix msqueues Serge E. Hallyn
2009-01-26 23:28   ` Andrew Morton
2009-01-27 21:56     ` Serge E. Hallyn
2009-01-17  2:05 ` [PATCH 3/3] mqueue namespace: adapt sysctl Serge E. Hallyn
2009-01-26 23:28 ` [Patch 0/3] posix mqueue namespace (v14) Andrew Morton
2009-01-27 21:20   ` Serge E. Hallyn [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090127212025.GA11978@us.ibm.com \
    --to=serue@us.ibm.com \
    --cc=akpm@linux-foundation.org \
    --cc=containers@lists.osdl.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox