Skip to content

Permit filesystem local caching

David Howells linux-fsdevel lkml selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest37 patches 23 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/37KEYS: Increase the payload size when instantiating a keysecurity/keys/keyctl.c+30 -80 replies
2/37KEYS: Check starting keyring as part of searchsecurity/keys/keyring.c+31 -40 replies
3/37KEYS: Allow the callout data to be passed as a blob rather than a stringDocumentation/keys-request-key.txt Documentation/keys.txt include/linux/key.h +4 more+70 -410 replies
4/37KEYS: Add keyctl function to get a security labelDocumentation/keys.txt include/linux/keyctl.h include/linux/security.h +5 more+141 -40 replies
5/37Security: Change current->fs[ug]id to current_fs[ug]id()arch/ia64/kernel/perfmon.c arch/powerpc/platforms/cell/spufs/inode.c drivers/isdn/capi/capifs.c +64 more+161 -1580 replies
6/37Security: Separate task security context from task_structarch/parisc/kernel/signal.c arch/powerpc/mm/fault.c arch/s390/hypfs/inode.c +94 more+872 -7161 reply
7/37Security: De-embed task security record from task and use refcountingfs/exec.c fs/open.c include/linux/init_task.h +26 more+543 -4031 reply
8/37Security: Add a kernel_service object class to SELinuxsecurity/selinux/include/av_perm_to_string.h security/selinux/include/av_permissions.h security/selinux/include/class_to_string.h +1 more+6 -00 replies
9/37Security: Allow kernel services to override LSM settings for task actionsinclude/linux/capability.h include/linux/cred.h include/linux/security.h +7 more+297 -152 replies
10/37Security: Make NFSD work with detached securityfs/nfsd/auth.c fs/nfsd/nfs4recover.c+65 -360 replies
11/37FS-Cache: Release page->private after failed readaheadmm/readahead.c+37 -20 replies
12/37FS-Cache: Recruit a couple of page flags for cache managementfs/splice.c include/linux/page-flags.h include/linux/pagemap.h +8 more+86 -180 replies
13/37FS-Cache: Provide an add_wait_queue_tail() functioninclude/linux/pagemap.h include/linux/wait.h kernel/wait.c +1 more+25 -30 replies
14/37FS-Cache: Generic filesystem caching facilityDocumentation/filesystems/caching/backend-api.txt Documentation/filesystems/caching/fscache.txt Documentation/filesystems/caching/netfs-api.txt +19 more+7279 -10 replies
15/37CacheFiles: Add missing copy_page export for ia64arch/ia64/kernel/ia64_ksyms.c+1 -00 replies
16/37CacheFiles: Be consistent about the use of mapping vs file->f_mapping in Ext3fs/ext3/inode.c+3 -30 replies
17/37CacheFiles: Add a hook to write a single page of data to an inodefs/ext2/inode.c fs/ext3/inode.c include/linux/fs.h +1 more+73 -00 replies
18/37CacheFiles: Permit the page lock state to be monitoredinclude/linux/pagemap.h mm/filemap.c+23 -00 replies
19/37CacheFiles: Export things for CacheFilesfs/super.c+1 -00 replies
20/37CacheFiles: A cache that backs onto a mounted filesystemDocumentation/filesystems/caching/cachefiles.txt fs/Kconfig fs/Makefile +14 more+4731 -00 replies
21/37NFS: Add comment banners to some NFS functionsfs/nfs/file.c+26 -00 replies
22/37NFS: Add FS-Cache option bit and debug bitinclude/linux/nfs_fs.h include/linux/nfs_fs_sb.h+3 -00 replies
23/37NFS: Permit local filesystem caching to be enabled for NFSfs/Kconfig+8 -00 replies
24/37NFS: Register NFS for caching and retrieve the top-level indexfs/nfs/Makefile fs/nfs/fscache-index.c fs/nfs/fscache.h +1 more+97 -00 replies
25/37NFS: Define and create server-level objectsfs/nfs/Makefile fs/nfs/client.c fs/nfs/fscache-index.c +3 more+137 -10 replies
26/37NFS: Define and create superblock-level objectsfs/nfs/fscache-index.c fs/nfs/fscache.c fs/nfs/fscache.h +3 more+213 -20 replies
27/37NFS: Define and create inode-level cache objectsfs/nfs/fscache-index.c fs/nfs/fscache.h+113 -00 replies
28/37NFS: Use local disk inode cachefs/nfs/fscache.c fs/nfs/fscache.h fs/nfs/inode.c +1 more+193 -60 replies
29/37NFS: Invalidate FsCache page flags when cache removedfs/nfs/fscache-index.c+40 -00 replies
30/37NFS: Add some new I/O event counters for FS-Cache eventsfs/nfs/iostat.h+7 -00 replies
31/37NFS: FS-Cache page managementfs/nfs/file.c fs/nfs/fscache.c fs/nfs/fscache.h+84 -40 replies
32/37NFS: Add read context retention for FS-Cache to call back withfs/nfs/fscache-index.c+26 -00 replies
33/37NFS: nfs_readpage_async() needs to be accessible as a fallback for local cachingfs/nfs/read.c include/linux/nfs_fs.h+4 -20 replies
34/37NFS: Read pages from FS-Cache into an NFS inodefs/nfs/fscache.c fs/nfs/fscache.h fs/nfs/read.c+176 -10 replies
35/37NFS: Store pages from an NFS inode into a local cachefs/nfs/fscache.c fs/nfs/fscache.h fs/nfs/read.c+47 -00 replies
36/37NFS: Display local caching statefs/nfs/client.c fs/nfs/fscache.h+19 -30 replies
37/37NFS: Add mount options to enable local caching on NFSfs/nfs/client.c fs/nfs/internal.h fs/nfs/super.c+28 -00 replies

Reviews trailers per patch

1 of 37 patches has a Reviewed-by or Acked-by.

PatchStephen Smalley
1/37
2/37
3/37
4/37A-b
5/37
6/37
7/37
8/37
9/37
10/37
11/37
12/37
13/37
14/37
15/37
16/37
17/37
18/37
19/37
20/37
21/37
22/37
23/37
24/37
25/37
26/37
27/37
28/37
29/37
30/37
31/37
32/37
33/37
34/37
35/37
36/37
37/37

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 00/37] Permit filesystem local caching

These patches add local caching for network filesystems such as NFS.

The patches can roughly be broken down into a number of sets:

(*) 01-keys-inc-payload.diff
(*) 02-keys-search-keyring.diff
(*) 03-keys-callout-blob.diff

Three patches to the keyring code made to help the CIFS people. Included because of patches 05-08.

(*) 04-keys-get-label.diff

A patch to allow the security label of a key to be retrieved. Included because of patches 05-08.

(*) 05-security-current-fsugid.diff
(*) 06-security-separate-task-bits.diff
(*) 07-security-subjective.diff
(*) 08-security-kernel_service-class.diff
(*) 09-security-kernel-service.diff
(*) 10-security-nfsd.diff

Patches to permit the subjective security of a task to be overridden. All the security details in task_struct are decanted into a new struct that task_struct then has two pointers two: one that defines the objective security of that task (how other tasks may affect it) and one that defines the subjective security (how it may affect other objects).

Note that I have dropped the idea of struct cred for the moment. With the amount of stuff that was excluded from it, it wasn't actually any use to me. However, it can be added later.

Required for cachefiles.

(*) 11-release-page.diff
(*) 12-fscache-page-flags.diff
(*) 13-add_wait_queue_tail.diff
(*) 14-fscache.diff

Patches to provide a local caching facility for network filesystems.

(*) 15-cachefiles-ia64.diff
(*) 16-cachefiles-ext3-f_mapping.diff
(*) 17-cachefiles-write.diff
(*) 18-cachefiles-monitor.diff
(*) 19-cachefiles-export.diff
(*) 20-cachefiles.diff

Patches to provide a local cache in a directory of an already mounted filesystem.

(*) 21-nfs-comment.diff
(*) 22-nfs-fscache-option.diff
(*) 23-nfs-fscache-kconfig.diff
(*) 24-nfs-fscache-top-index.diff
(*) 25-nfs-fscache-server-obj.diff
(*) 26-nfs-fscache-super-obj.diff
(*) 27-nfs-fscache-inode-obj.diff
(*) 28-nfs-fscache-use-inode.diff
(*) 29-nfs-fscache-invalidate-pages.diff
(*) 30-nfs-fscache-iostats.diff
(*) 31-nfs-fscache-page-management.diff
(*) 32-nfs-fscache-read-context.diff
(*) 33-nfs-fscache-read-fallback.diff
(*) 34-nfs-fscache-read-from-cache.diff
(*) 35-nfs-fscache-store-to-cache.diff
(*) 36-nfs-fscache-mount.diff
(*) 37-nfs-fscache-display.diff

Patches to provide NFS with local caching.

A couple of questions on the NFS iostat changes: (1) Should I update the iostat version number; (2) is it permitted to have conditional iostats?

I've brought the patchset up to date with respect to the 2.6.25-rc1 merge window, in particular altering Smack to handle the split in objective and subjective security in the task_struct.

--
A tarball of the patches is available at:

http://people.redhat.com/~dhowells/fscache/patches/nfs+fscache-30.tar.bz2

To use this version of CacheFiles, the cachefilesd-0.9 is also required. It is available as an SRPM:

	http://people.redhat.com/~dhowells/fscache/cachefilesd-0.9-1.fc7.src.rpm

Or as individual bits:

http://people.redhat.com/~dhowells/fscache/cachefilesd-0.9.tar.bz2
http://people.redhat.com/~dhowells/fscache/cachefilesd.fc
http://people.redhat.com/~dhowells/fscache/cachefilesd.if
http://people.redhat.com/~dhowells/fscache/cachefilesd.te
http://people.redhat.com/~dhowells/fscache/cachefilesd.spec

The .fc, .if and .te files are for manipulating SELinux.

David