Skip to content

Permit filesystem local caching [try #2]

David Howells lkml selinux 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest28 patches 97 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/28KEYS: Increase the payload size when instantiating a key [try #2]security/keys/keyctl.c+30 -80 replies
2/28KEYS: Check starting keyring as part of search [try #2]security/keys/keyring.c+31 -40 replies
3/28KEYS: Allow the callout data to be passed as a blob rather than a string [try #2]Documentation/keys-request-key.txt Documentation/keys.txt include/linux/key.h +4 more+70 -410 replies
4/28KEYS: Add keyctl function to get a security label [try #2]Documentation/keys.txt include/linux/keyctl.h include/linux/security.h +5 more+141 -40 replies
5/28Security: Change current->fs[ug]id to current_fs[ug]id() [try #2]arch/ia64/kernel/perfmon.c arch/powerpc/platforms/cell/spufs/inode.c drivers/isdn/capi/capifs.c +64 more+163 -1600 replies
6/28SECURITY: Separate task security context from task_struct [try #2]drivers/block/loop.c drivers/char/agp/frontend.c drivers/char/drm/drm_fops.c +68 more+635 -5280 replies
7/28SECURITY: De-embed task security record from task and use refcounting [try #2]fs/exec.c fs/open.c include/linux/init_task.h +24 more+526 -3910 replies
8/28SECURITY: Allow kernel services to override LSM settings for task actions [try #2]include/linux/cred.h include/linux/security.h kernel/cred.c +3 more+216 -076 replies
9/28FS-Cache: Release page->private after failed readahead [try #2]mm/readahead.c+37 -23 replies
10/28FS-Cache: Recruit a couple of page flags for cache management [try #2]fs/splice.c include/linux/page-flags.h include/linux/pagemap.h +8 more+83 -1813 replies
11/28FS-Cache: Provide an add_wait_queue_tail() function [try #2]include/linux/wait.h kernel/wait.c+20 -00 replies
12/28FS-Cache: Generic filesystem caching facility [try #2]Documentation/filesystems/caching/backend-api.txt Documentation/filesystems/caching/fscache.txt Documentation/filesystems/caching/netfs-api.txt +17 more+7268 -00 replies
13/28CacheFiles: Add missing copy_page export for ia64 [try #2]arch/ia64/kernel/ia64_ksyms.c+1 -00 replies
14/28CacheFiles: Be consistent about the use of mapping vs file->f_mapping in Ext3 [try #2]fs/ext3/inode.c+3 -30 replies
15/28CacheFiles: Add a hook to write a single page of data to an inode [try #2]fs/ext2/inode.c fs/ext3/inode.c include/linux/fs.h +1 more+73 -00 replies
16/28CacheFiles: Permit the page lock state to be monitored [try #2]include/linux/pagemap.h mm/filemap.c+23 -00 replies
17/28CacheFiles: Export things for CacheFiles [try #2]fs/super.c+1 -00 replies
18/28CacheFiles: A cache that backs onto a mounted filesystem [try #2]Documentation/filesystems/caching/cachefiles.txt fs/Kconfig fs/Makefile +14 more+4672 -00 replies
19/28NFS: Use local caching [try #2]fs/nfs/Makefile fs/nfs/client.c fs/nfs/file.c +9 more+968 -90 replies
20/28NFS: Configuration and mount option changes to enable local caching on NFS [try #2]fs/Kconfig fs/nfs/client.c fs/nfs/internal.h +1 more+25 -00 replies
21/28NFS: Display local caching state [try #2]fs/nfs/client.c fs/nfs/fscache.h+19 -30 replies
22/28fcrypt endianness misannotations [try #2]crypto/fcrypt.c+44 -440 replies
23/28AFS: Add TestSetPageError() [try #2]include/linux/page-flags.h+1 -00 replies
24/28AFS: Add a function to excise a rejected write from the pagecache [try #2]include/linux/mm.h mm/truncate.c+86 -25 replies
25/28AFS: Improve handling of a rejected writeback [try #2]fs/afs/fsclient.c fs/afs/internal.h fs/afs/write.c+85 -740 replies
26/28AF_RXRPC: Save the operation ID for debugging [try #2]fs/afs/fsclient.c fs/afs/rxrpc.c fs/afs/vlclient.c +4 more+35 -120 replies
27/28AFS: Implement shared-writable mmap [try #2]fs/afs/file.c fs/afs/internal.h fs/afs/write.c+55 -10 replies
28/28FS-Cache: Make kAFS use FS-Cache [try #2]fs/Kconfig fs/afs/Makefile fs/afs/cache.c +10 more+537 -3750 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/28] Permit filesystem local caching [try #2]

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

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.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.

(*) 09-release-page.diff
(*) 10-fscache-page-flags.diff
(*) 11-add_wait_queue_tail.diff
(*) 12-fscache.diff

Patches to provide a local caching facility for network filesystems.

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

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

(*) 19-fscache-nfs.diff
(*) 20-fscache-nfs-mount.diff
(*) 21-fscache-nfs-display.diff

Patches to provide NFS with local caching.

(*) 22-fcrypt-bit-annotate.diff

A fix for AFS.

(*) 23-afs-testsetpageerror.diff
(*) 24-afs-cancel_rejected_write.diff
(*) 25-afs-rejected-writeback.diff
(*) 26-afs-opID.diff
(*) 27-afs-shared-writable-mmap.diff

Patches to provide AFS with improved write support.

(*) 28-fscache-afs.diff

Patches to provide AFS with local caching.

There are some issues with these patches that I'd like advice on:

(1) Is the security override stuff acceptable?

(2) Should the audit context be placed in the task_security struct?

(3) Should the task security context actually be shared by CLONE_THREAD? (should it be placed in struct thread_group_security).

(4) How to handle superblock sharing in NFS? (I've sent a separate email on this)

Andrew, Linus, can you please hold off on taking these patches for the moment.

--
A tarball of the patches is available at:

http://people.redhat.com/~dhowells/fscache/patches/nfs+fscache-25.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

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.