If we can't pull the entire series into -mm, can we just put the first three patches for now? They can stand on their own. --- Why do we need r/o bind mounts? This feature allows a read-only view into a read-write filesystem. In the process of doing that, it also provides infrastructure for keeping track of the number of writers to any given mount. This has a number of uses. It allows chroots to have parts of filesystems writable. It will be useful for containers in the future because users may have root inside a container, but should not be allowed to write to somefilesystems. This also replaces patches that vserver has had out of the tree for several years. It allows security enhancement by making sure that parts of your filesystem read-only (such as when you don't trust your FTP server), when you don't want to have entire new filesystems mounted, or when you want atime selectively updated. I've been using the following script to test that the feature is working as desired. It takes a directory and makes a regular bind and a r/o bind mount of it. It then performs some normal filesystem operations on the three directories, including ones that are expected to fail, like creating a file on the r/o mount. Signed-off-by: Dave Hansen <haveblue@us.ibm.com> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [PATCH 00/24] Read-only bind mounts
- From: Christoph Hellwig <hch@infradead.org>
- Re: [PATCH 00/24] Read-only bind mounts
- From: "Serge E. Hallyn" <serge@hallyn.com>
- [PATCH 22/24] do_rmdir(): elevate write count
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 14/24] unix_find_other() elevate write count for touch_atime()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 21/24] elevate mnt writers for vfs_unlink() callers
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 19/24] elevate write count for do_sys_utime() and touch_atime()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 20/24] sys_mknodat(): elevate write count for vfs_mknod/create()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 09/24] elevate mnt writers for callers of vfs_mkdir()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 06/24] r/o bind mounts: elevate write count for some ioctls
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 04/24] r/o bind mounts: stub functions
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 11/24] elevate write count for link and symlink calls
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 18/24] elevate write count for do_utimes()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 17/24] elevate writer count for do_sys_truncate()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 16/24] nfs: check mnt instead of superblock directly
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 15/24] elevate write count over calls to vfs_rename()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 10/24] elevate write count during entire ncp_ioctl()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 12/24] elevate mount count for extended attributes
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 13/24] elevate write count for file_update_time()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 08/24] make access() use mnt check
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 07/24] elevate writer count for chown and friends
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 05/24] elevate write count open()'d files
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 03/24] create cleanup helper svc_msnfs()
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 01/24] filesystem helpers for custom 'struct file's
- From: Dave Hansen <haveblue@us.ibm.com>
- [PATCH 02/24] rearrange may_open() to be r/o friendly
- From: Dave Hansen <haveblue@us.ibm.com>
- Re: [PATCH 00/24] Read-only bind mounts
- Prev by Date: Re: [kvm-devel] [PATCH] Refactor hypercall infrastructure
- Next by Date: [PATCH 02/24] rearrange may_open() to be r/o friendly
- Previous by thread: [PATCH 2/2] unify DMA_..BIT_MASK definitions: cleanup drivers/scsi/gdth.c
- Next by thread: [PATCH 02/24] rearrange may_open() to be r/o friendly
- Index(es):
![]() |