Hi Al, Here's a set of patches to partially implement cred passing. This is in no way complete yet. The only complete chain is mkdir(), and only Ext3 and NFS are fully altered, though I think NFS really needs redoing. I'd like to come up with a way of caching the rpc_cred struct inside the struct cred, but that needs some thought. Most of the vfs_xxxx() structs grab current->cred and pass it on down. vfs_mkdir() is currently the only one that gets given it. There are also holes in fs/buffer.c that need patching up, and most of the other filesystems haven't yet been touched. Note that I haven't included keyrings or capabilties or LSM data at this time. Note also that this patch set is built on top of the iget patch set I've posted to LKML earlier today. David - 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:
- Re: [PATCH 00/52] Introduce credential record
- From: David Howells <[email protected]>
- Re: [PATCH 00/52] Introduce credential record
- From: Theodore Tso <[email protected]>
- [PATCH 52/52] CRED: Pass credentials through vfs_mkdir()
- From: David Howells <[email protected]>
- [PATCH 51/52] CRED: Pass credentials through the removexattr() inode op
- From: David Howells <[email protected]>
- [PATCH 50/52] CRED: Pass credentials through the listxattr() inode op
- From: David Howells <[email protected]>
- [PATCH 49/52] CRED: Pass credentials through the xattr list() handler
- From: David Howells <[email protected]>
- [PATCH 48/52] CRED: Pass credentials through the getxattr() inode op
- From: David Howells <[email protected]>
- [PATCH 47/52] CRED: Pass credentials through the xattr get() handler
- From: David Howells <[email protected]>
- [PATCH 46/52] CRED: Pass credentials through the setxattr() inode op
- From: David Howells <[email protected]>
- [PATCH 45/52] CRED: Pass credentials through the getattr() inode op
- From: David Howells <[email protected]>
- [PATCH 44/52] CRED: Pass credentials through the follow_link() inode op
- From: David Howells <[email protected]>
- [PATCH 43/52] CRED: Pass credentials through the statfs() superblock op
- From: David Howells <[email protected]>
- [PATCH 42/52] CRED: Pass credentials through the permission() inode op
- From: David Howells <[email protected]>
- [PATCH 41/52] CRED: Pass credentials through d_revalidate()
- From: David Howells <[email protected]>
- [PATCH 40/52] CRED: Give the lookup() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 39/52] CRED: Pass credentials through the quota_write() op
- From: David Howells <[email protected]>
- [PATCH 38/52] CRED: Pass credentials through the quota_read() op
- From: David Howells <[email protected]>
- [PATCH 37/52] CRED: Pass credentials to the get_sb() op and various fill_super() ops
- From: David Howells <[email protected]>
- [PATCH 36/52] CRED: Make ext3_fill_super() pass credentials down
- From: David Howells <[email protected]>
- [PATCH 35/52] CRED: Make the ACL set() handler take a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 34/52] CRED: Make Ext3 ACL set handlers pass credentials down
- From: David Howells <[email protected]>
- [PATCH 33/52] CRED: Make the get_parent() export op take a credential pointer
- From: David Howells <[email protected]>
- [PATCH 32/52] CRED: Give the symlink() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 31/52] CRED: Give the rename() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 30/52] CRED: Give the rmdir() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 29/52] CRED: Give the unlink() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 28/52] CRED: Give the link() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 27/52] CRED: Give the create() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 26/52] CRED: Give the mkdir() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 24/52] CRED: Pass credentials through inode_setattr()
- From: David Howells <[email protected]>
- [PATCH 25/52] CRED: Give the mknod() inode op a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 23/52] CRED: Pass credentials to the setattr() inode operation
- From: David Howells <[email protected]>
- [PATCH 22/52] CRED: Pass credentials to nfs_setattr_update_inode()
- From: David Howells <[email protected]>
- [PATCH 20/52] CRED: Pass credentials into rpc_init_task()
- From: David Howells <[email protected]>
- [PATCH 21/52] CRED: Pass credentials through the truncate() inode operation
- From: David Howells <[email protected]>
- [PATCH 19/52] CRED: Add a credentials pointer to struct rpc_task
- From: David Howells <[email protected]>
- [PATCH 18/52] CRED: Make rpcauth_bindcred() take a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 17/52] CRED: Make rpcauth_lookupcred() take a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 16/52] CRED: Pass credentials through the internals of ext3 truncation
- From: David Howells <[email protected]>
- [PATCH 15/52] CRED: Make Ext3 use the writeback credentials
- From: David Howells <[email protected]>
- [PATCH 13/52] CRED: Make block_prepare_write() and co take a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 14/52] CRED: Provide a writeback credentials record
- From: David Howells <[email protected]>
- [PATCH 12/52] CRED: Make mpage read functions take a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 11/52] CRED: Give the get_block() callback a credentials pointer
- From: David Howells <[email protected]>
- [PATCH 10/52] CRED: Pass credentials down to ext4 inode allocator
- From: David Howells <[email protected]>
- [PATCH 09/52] CRED: Pass credentials down to ext4 block allocator
- From: David Howells <[email protected]>
- [PATCH 08/52] CRED: Pass credentials down to ext2 inode allocator
- From: David Howells <[email protected]>
- [PATCH 03/52] CRED: Pass credentials down to ext3 block allocator
- From: David Howells <[email protected]>
- [PATCH 07/52] CRED: Pass credentials down to ext2 block allocator
- From: David Howells <[email protected]>
- [PATCH 06/52] CRED: Prepare RAMFS for cred passing
- From: David Howells <[email protected]>
- [PATCH 05/52] CRED: Prepare TMPFS for cred passing
- From: David Howells <[email protected]>
- [PATCH 04/52] CRED: Pass credentials down to ext3 inode allocator
- From: David Howells <[email protected]>
- [PATCH 02/52] CRED: Give in_group_p() a cred pointer
- From: David Howells <[email protected]>
- [PATCH 01/52] CRED: Introduce a COW credentials record
- From: David Howells <[email protected]>
- Re: [PATCH 00/52] Introduce credential record
- Prev by Date: [PATCH try #4] Blackfin BF54x Input Keypad controller driver
- Next by Date: [PATCH 01/52] CRED: Introduce a COW credentials record
- Previous by thread: [PATCH try #4] Blackfin BF54x Input Keypad controller driver
- Next by thread: [PATCH 01/52] CRED: Introduce a COW credentials record
- Index(es):