This is against 2.6.23-rc6. Compared to 2.6.23-rc6-mm1, there are a few (trivial) merge conflicts with the audit git tree, and one slightly more complicated one with ext2-reservations.patch. Changes from last post: - added several kerneldoc comments for exported functions - broke out the 'mnt' variable patch - removed WARN_ON() in ioctl patch The first four patches here are very simple cleanups, and can go in ahead of the rest of the patches. If you are reviewing this, the things that need the most review are the last two patches that actually add the logic for tracking mount write counts. --- 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 <[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 25/25] honor r/w changes at do_remount() time
- From: Dave Hansen <[email protected]>
- [PATCH 24/25] r/o bind mounts: track number of mount writers
- From: Dave Hansen <[email protected]>
- [PATCH 23/25] do_rmdir(): elevate write count
- From: Dave Hansen <[email protected]>
- [PATCH 22/25] elevate mnt writers for vfs_unlink() callers
- From: Dave Hansen <[email protected]>
- [PATCH 21/25] sys_mknodat(): elevate write count for vfs_mknod/create()
- From: Dave Hansen <[email protected]>
- [PATCH 06/25] elevate write count open()'d files
- From: Dave Hansen <[email protected]>
- [PATCH 13/25] elevate mount count for extended attributes
- From: Dave Hansen <[email protected]>
- [PATCH 20/25] elevate write count for do_sys_utime() and touch_atime()
- From: Dave Hansen <[email protected]>
- [PATCH 19/25] elevate write count for do_utimes()
- From: Dave Hansen <[email protected]>
- [PATCH 18/25] elevate writer count for do_sys_truncate()
- From: Dave Hansen <[email protected]>
- [PATCH 14/25] elevate write count for file_update_time()
- From: Dave Hansen <[email protected]>
- [PATCH 02/25] rearrange may_open() to be r/o friendly
- From: Dave Hansen <[email protected]>
- [PATCH 16/25] elevate write count over calls to vfs_rename()
- From: Dave Hansen <[email protected]>
- [PATCH 17/25] nfs: check mnt instead of superblock directly
- From: Dave Hansen <[email protected]>
- [PATCH 15/25] unix_find_other() elevate write count for touch_atime()
- From: Dave Hansen <[email protected]>
- [PATCH 10/25] elevate mnt writers for callers of vfs_mkdir()
- From: Dave Hansen <[email protected]>
- [PATCH 08/25] elevate writer count for chown and friends
- From: Dave Hansen <[email protected]>
- [PATCH 12/25] elevate write count for link and symlink calls
- From: Dave Hansen <[email protected]>
- [PATCH 11/25] elevate write count during entire ncp_ioctl()
- From: Dave Hansen <[email protected]>
- [PATCH 07/25] r/o bind mounts: elevate write count for some ioctls
- From: Dave Hansen <[email protected]>
- [PATCH 09/25] make access() use mnt check
- From: Dave Hansen <[email protected]>
- [PATCH 05/25] r/o bind mounts: stub functions
- From: Dave Hansen <[email protected]>
- [PATCH 04/25] create cleanup helper svc_msnfs()
- From: Dave Hansen <[email protected]>
- [PATCH 03/25] give may_open() a local 'mnt' variable
- From: Dave Hansen <[email protected]>
- [PATCH 01/25] filesystem helpers for custom 'struct file's
- From: Dave Hansen <[email protected]>
- [PATCH 25/25] honor r/w changes at do_remount() time
- Prev by Date: [PATCH] rpc: fix garbage in printk in svc_tcp_accept()
- Next by Date: [PATCH 01/25] filesystem helpers for custom 'struct file's
- Previous by thread: [PATCH] rpc: fix garbage in printk in svc_tcp_accept()
- Next by thread: [PATCH 01/25] filesystem helpers for custom 'struct file's
- Index(es):