Tries to incorporate comments from Al: http://article.gmane.org/gmane.linux.kernel/421029 Al wrote: > b) figuring out what (if anything) should be done with > propagation when we have shared subtrees... (not trivial at all) Talked with Ram: Shared subtrees are about having identical views into the filesystem. Changing the mount permissions doesn't affect the view of the filesystem, so it should not be propagated. The things that probably need the heaviest review in here are the i_nlink monitoring patch (including the inode state flag patches 03 and 06) and the new MNT_SB_WRITABLE flag (patch 05). These are against 2.6.18-rc2-mm1. Does anybody have anything against them having some testing in -mm? --- The following series implements read-only 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. In this version, if there are writers on a superblock, the filesystem may not be remounted r/o. The same goes for MS_BIND mounts, and writers on a vfsmount. This has a number of uses. It allows chroots to have parts of filesystems writable. It will be useful for containers in the future and is intended to replace 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, when you don't want to have entire new filesystems mounted, or when you want atime selectively updated. This set makes no attempt to keep the return codes for these r/o bind mounts the same as for a real r/o filesystem or device. It would require significantly more code and be quite a bit more invasive. Using this feature requires two steps: mount --bind /source /dest mount -o remount,ro /dest Signed-off-by: Dave Hansen <[email protected]> - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- [PATCH 09/28] kill open files traverse on remount ro
- From: Dave Hansen <[email protected]>
- [PATCH 08/28] record when sb_writer_count elevated for inode
- From: Dave Hansen <[email protected]>
- [PATCH 11/28] elevate writer count for chown and friends
- From: Dave Hansen <[email protected]>
- [PATCH 15/28] elevate mount count for extended attributes
- From: Dave Hansen <[email protected]>
- [PATCH 04/28] OCFS2 is screwy
- From: Dave Hansen <[email protected]>
- [PATCH 14/28] sys_symlinkat() elevate write count around vfs_symlink()
- From: Dave Hansen <[email protected]>
- [PATCH 16/28] sys_linkat(): elevate write count around vfs_link()
- From: Dave Hansen <[email protected]>
- [PATCH 12/28] elevate mnt writers for callers of vfs_mkdir()
- From: Dave Hansen <[email protected]>
- [PATCH 13/28] elevate write count during entire ncp_ioctl()
- From: Dave Hansen <[email protected]>
- [PATCH 06/28] reintroduce list of vfsmounts over superblock
- From: Dave Hansen <[email protected]>
- [PATCH 07/28] Add vfsmount writer count
- From: Dave Hansen <[email protected]>
- [PATCH 27/28] elevate writer count for custom 'struct file'
- From: Dave Hansen <[email protected]>
- [PATCH 28/28] honor r/w changes at do_remount() time
- From: Dave Hansen <[email protected]>
- [PATCH 23/28] elevate write count for do_sys_utime() and touch_atime()
- From: Dave Hansen <[email protected]>
- [PATCH 10/28] increment sb writer count when nlink hits zero
- From: Dave Hansen <[email protected]>
- [PATCH 22/28] elevate write count for do_utimes()
- From: Dave Hansen <[email protected]>
- [PATCH 21/28] elevate writer count for do_sys_truncate()
- From: Dave Hansen <[email protected]>
- [PATCH 26/28] do_rmdir(): elevate write count
- From: Dave Hansen <[email protected]>
- [PATCH 19/28] elevate write count over calls to vfs_rename()
- From: Dave Hansen <[email protected]>
- [PATCH 24/28] sys_mknodat(): elevate write count for vfs_mknod/create()
- From: Dave Hansen <[email protected]>
- [PATCH 01/28] prepare for write access checks: collapse if()
- From: Dave Hansen <[email protected]>
- [PATCH 18/28] unix_find_other() elevate write count for touch_atime()
- From: Dave Hansen <[email protected]>
- [PATCH 05/28] monitor zeroing of i_nlink
- From: Dave Hansen <[email protected]>
- [PATCH 17/28] mount_is_safe(): add comment
- From: Dave Hansen <[email protected]>
- [PATCH 20/28] tricky: elevate write count files are open()ed
- From: Dave Hansen <[email protected]>
- [PATCH 02/28] r/o bind mount prepwork: move open_namei()'s vfs_create()
- From: Dave Hansen <[email protected]>
- [PATCH 25/28] elevate mnt writers for vfs_unlink() callers
- From: Dave Hansen <[email protected]>
- [PATCH 03/28] unlink: monitor i_nlink
- From: Dave Hansen <[email protected]>
- [PATCH 09/28] kill open files traverse on remount ro
- Prev by Date: Re: single bit flip detector.
- Next by Date: [PATCH 03/28] unlink: monitor i_nlink
- Previous by thread: [2.6.18-rc2-mm1] pata_via fails
- Next by thread: [PATCH 03/28] unlink: monitor i_nlink
- Index(es):