alistair23-linux/fs/nfs
Eric Paris 46c8ac7425 nfs/lsm: make NFSv4 set LSM mount options
NFSv3 get_sb operations call into the LSM layer to set security options passed
from userspace.  NFSv4 hooks were not originally added since it was reasonably
late in the merge window and NFSv3 was the only thing that had regressed (v4
has never supported any LSM options)

This patch makes NFSv4 call into the LSM to set security options rather than
just blindly dropping them with no notice to the user as happens today.  This
patch was tested in a simple NFSv4 environment with the context= option and
appeared to work as expected.

Signed-off-by: Eric Paris <eparis@redhat.com>
Cc: Trond Myklebust <trond.myklebust@fys.uio.no>
Cc: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Cc: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
2008-05-16 09:43:27 -07:00
..
callback.c NFS: don't let nfs_callback_svc exit on unexpected svc_recv errors (try #2) 2008-04-23 16:13:42 -04:00
callback.h
callback_proc.c
callback_xdr.c NFSv4: Check the return value of decode_compound_hdr_arg() 2008-05-16 09:43:26 -07:00
client.c nfs: use proc_create to setup de->proc_fops 2008-04-29 08:06:20 -07:00
delegation.c
delegation.h
dir.c Merge branch 'devel' 2008-04-24 14:01:02 -04:00
direct.c NFS: Ensure that rpc_run_task() errors are propagated back to the caller 2008-04-19 16:53:08 -04:00
file.c Merge branch 'devel' 2008-04-24 14:01:02 -04:00
getroot.c
idmap.c
inode.c NFS: Ensure that 'noac' and/or 'actimeo=0' turn off attribute caching 2008-05-16 09:43:21 -07:00
internal.h NFS: Always enable NFS direct I/O 2008-03-19 18:00:34 -04:00
iostat.h
Makefile NFS: Always enable NFS direct I/O 2008-03-19 18:00:34 -04:00
mount_clnt.c
namespace.c make nfs_automount_list static 2008-04-19 16:55:29 -04:00
nfs2xdr.c nfs: return negative error value from nfs{,4}_stat_to_errno 2008-04-19 16:54:47 -04:00
nfs3acl.c
nfs3proc.c
nfs3xdr.c nfs: return negative error value from nfs{,4}_stat_to_errno 2008-04-19 16:54:47 -04:00
nfs4_fs.h
nfs4namespace.c
nfs4proc.c NFSv4: Don't use cred->cr_ops->cr_name in nfs4_proc_setclientid() 2008-04-19 16:54:53 -04:00
nfs4renewd.c NFSv4: Fix circular locking dependency in nfs4_kill_renewd 2008-01-03 09:37:16 -05:00
nfs4state.c NFSv4: Attempt to use machine credentials in SETCLIENTID calls 2008-04-19 16:54:59 -04:00
nfs4xdr.c nfs: fix printout of multiword bitfields 2008-04-19 16:54:50 -04:00
nfsroot.c
pagelist.c
proc.c
read.c NFS: Ensure that rpc_run_task() errors are propagated back to the caller 2008-04-19 16:53:08 -04:00
super.c nfs/lsm: make NFSv4 set LSM mount options 2008-05-16 09:43:27 -07:00
symlink.c nfs: remove unnecessary NFS_NEED_* defines 2008-04-23 16:13:37 -04:00
sysctl.c
unlink.c SUNRPC: Add a helper rpcauth_lookup_generic_cred() 2008-03-14 13:42:49 -04:00
write.c nfs: fix race in nfs_dirty_request 2008-05-16 09:43:23 -07:00