From: Randy Dunlap <rdunlap@infradead.org>
To: Seth Forshee <seth.forshee@canonical.com>,
linux-kernel@vger.kernel.org,
lxc-devel@lists.linuxcontainers.org
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
Alexander Viro <viro@zeniv.linux.org.uk>,
James Bottomley <James.Bottomley@HansenPartnership.com>,
Serge Hallyn <serge.hallyn@ubuntu.com>,
"Michael H. Warfield" <mhw@wittsend.com>,
Marian Marinov <mm@1h.com>,
Eric Biederman <ebiederm@xmission.com>,
Richard Weinberger <richard.weinberger@gmail.com>,
Andy Lutomirski <luto@amacapital.net>,
Michael J Coss <michael.coss@alcatel-lucent.com>
Subject: Re: [RFC PATCH 1/2] loop: Add loop filesystem
Date: Tue, 27 May 2014 15:56:53 -0700 [thread overview]
Message-ID: <53851835.3060706@infradead.org> (raw)
In-Reply-To: <1401227936-15698-2-git-send-email-seth.forshee@canonical.com>
On 05/27/2014 02:58 PM, Seth Forshee wrote:
> Add limited capability for use of loop devices in containers via
> a loopfs psuedo fs. When mounted this filesystem will contain
> only a loop-control device node. This can be used to request free
> loop devices which will be "owned" by that mount. Device nodes
> appear automatically for these devices, and the same device will
> not be given to another loopfs mount. Privileged loop ioctls
> (for encrypted loop) will be allowed within the namespace which
> mounted the loopfs.
>
> Privileged block ioctls are not permitted, so features such as
> partitions are not supported for unprivileged users.
>
> Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
> ---
> drivers/block/loop.c | 110 +++++++++++---
> drivers/block/loop.h | 2 +
> fs/Makefile | 1 +
> fs/loopfs/Makefile | 6 +
> fs/loopfs/inode.c | 349 +++++++++++++++++++++++++++++++++++++++++++++
> include/linux/loopfs.h | 46 ++++++
> include/uapi/linux/magic.h | 1 +
> 7 files changed, 495 insertions(+), 20 deletions(-)
> create mode 100644 fs/loopfs/Makefile
> create mode 100644 fs/loopfs/inode.c
> create mode 100644 include/linux/loopfs.h
>
> diff --git a/fs/loopfs/Makefile b/fs/loopfs/Makefile
> new file mode 100644
> index 000000000000..01aedfb2f841
> --- /dev/null
> +++ b/fs/loopfs/Makefile
> @@ -0,0 +1,6 @@
> +#
> +# Makefile for the loopfs virtual filesystem
> +#
> +
> +obj-$(CONFIG_BLK_DEV_LOOP) += loopfs.o
> +loopfs-$(CONFIG_BLK_DEV_LOOP) := inode.o
I guess that you need to update the BLK_DEV_LOOP entry in
drivers/block/Kconfig to mention this?
--
~Randy
next prev parent reply other threads:[~2014-05-27 22:57 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-27 21:58 [RFC PATCH 0/2] Loop device psuedo filesystem Seth Forshee
2014-05-27 21:58 ` [RFC PATCH 1/2] loop: Add loop filesystem Seth Forshee
2014-05-27 22:56 ` Randy Dunlap [this message]
2014-05-28 7:36 ` Seth Forshee
2014-05-27 21:58 ` [RFC PATCH 2/2] loop: Permit priveleged operations within user namespaces Seth Forshee
2014-05-27 22:19 ` [RFC PATCH 0/2] Loop device psuedo filesystem Andy Lutomirski
2014-05-28 7:32 ` Seth Forshee
2014-05-28 16:10 ` Andy Lutomirski
2014-05-28 17:39 ` Michael H. Warfield
2014-05-28 23:47 ` H. Peter Anvin
2014-05-29 11:20 ` Seth Forshee
2014-09-15 20:38 ` Shea Levy
2014-09-15 20:55 ` Seth Forshee
2014-09-15 23:20 ` Shea Levy
2014-09-16 12:24 ` Seth Forshee
2014-09-16 16:12 ` Shea Levy
2014-09-16 16:39 ` Seth Forshee
2014-09-16 17:05 ` Shea Levy
2014-09-16 17:26 ` Seth Forshee
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=53851835.3060706@infradead.org \
--to=rdunlap@infradead.org \
--cc=James.Bottomley@HansenPartnership.com \
--cc=ebiederm@xmission.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@amacapital.net \
--cc=lxc-devel@lists.linuxcontainers.org \
--cc=mhw@wittsend.com \
--cc=michael.coss@alcatel-lucent.com \
--cc=mm@1h.com \
--cc=richard.weinberger@gmail.com \
--cc=serge.hallyn@ubuntu.com \
--cc=seth.forshee@canonical.com \
--cc=viro@zeniv.linux.org.uk \
/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;
as well as URLs for NNTP newsgroup(s).