[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20081219171930.GA17335@us.ibm.com>
Date: Fri, 19 Dec 2008 11:19:30 -0600
From: "Serge E. Hallyn" <serue@...ibm.com>
To: lkml <linux-kernel@...r.kernel.org>
Cc: Linux Containers <containers@...ts.osdl.org>,
Dave Hansen <haveblue@...ibm.com>,
Sukadev Bhattiprolu <sukadev@...ibm.com>
Subject: [RFC patch 0/3] posix mqueue namespace (v13)
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:
v13:
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.
thanks,
-serge
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists