CRED: Pass credentials through dentry_open()
authorDavid Howells <dhowells@redhat.com>
Thu, 13 Nov 2008 23:39:22 +0000 (10:39 +1100)
committerJames Morris <jmorris@namei.org>
Thu, 13 Nov 2008 23:39:22 +0000 (10:39 +1100)
commit745ca2475a6ac596e3d8d37c2759c0fbe2586227
treef87c34bdfbc8542477b16a014bbb4e3b415b286a
parent88e67f3b8898c5ea81d2916dd5b8bc9c0c35ba13
CRED: Pass credentials through dentry_open()

Pass credentials through dentry_open() so that the COW creds patch can have
SELinux's flush_unauthorized_files() pass the appropriate creds back to itself
when it opens its null chardev.

The security_dentry_open() call also now takes a creds pointer, as does the
dentry_open hook in struct security_operations.

Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: James Morris <jmorris@namei.org>
Signed-off-by: James Morris <jmorris@namei.org>
19 files changed:
arch/powerpc/platforms/cell/spufs/inode.c
arch/um/drivers/mconsole_kern.c
fs/autofs4/dev-ioctl.c
fs/ecryptfs/ecryptfs_kernel.h
fs/ecryptfs/kthread.c
fs/ecryptfs/main.c
fs/exportfs/expfs.c
fs/hppfs/hppfs.c
fs/nfsctl.c
fs/nfsd/nfs4recover.c
fs/nfsd/vfs.c
fs/open.c
fs/xfs/linux-2.6/xfs_ioctl.c
include/linux/fs.h
include/linux/security.h
ipc/mqueue.c
security/capability.c
security/security.c
security/selinux/hooks.c