kernel_optimize_test/fs/nfs
Eric Paris f9c3a38021 NFS: use new LSM interfaces to explicitly set mount options
NFS and SELinux worked together previously because SELinux had NFS
specific knowledge built in.  This design was approved by both groups
back in 2004 but the recent NFS changes to use nfs_parsed_mount_data and
the usage of nfs_clone_mount_data showed this to be a poor fragile
solution.  This patch fixes the NFS functionality regression by making
use of the new LSM interfaces to allow an FS to explicitly set its own
mount options.

The explicit setting of mount options is done in the nfs get_sb
functions which are called before the generic vfs hooks try to set mount
options for filesystems which use text mount data.

This does not currently support NFSv4 as that functionality did not
exist in previous kernels and thus there is no regression.  I will be
adding the needed code, which I believe to be the exact same as the v3
code, in nfs4_get_sb for 2.6.26.

Signed-off-by: Eric Paris <eparis@redhat.com>
Acked-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: James Morris <jmorris@namei.org>
2008-03-06 08:40:59 +11:00
..
callback_proc.c
callback_xdr.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
callback.c Wrap buffers used for rpc debug printks into RPC_IFDEBUG 2008-02-21 18:42:29 -05:00
callback.h
client.c
delegation.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
delegation.h
dir.c
direct.c
file.c
getroot.c
idmap.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
inode.c
internal.h NFS: use new LSM interfaces to explicitly set mount options 2008-03-06 08:40:59 +11:00
iostat.h
Makefile
mount_clnt.c
namespace.c
nfs2xdr.c
nfs3acl.c
nfs3proc.c
nfs3xdr.c
nfs4_fs.h
nfs4namespace.c
nfs4proc.c
nfs4renewd.c
nfs4state.c nfs: fix sparse warnings 2008-02-20 16:15:44 -05:00
nfs4xdr.c
nfsroot.c
pagelist.c
proc.c
read.c
super.c NFS: use new LSM interfaces to explicitly set mount options 2008-03-06 08:40:59 +11:00
symlink.c
sysctl.c
unlink.c
write.c