]> git.baikalelectronics.ru Git - kernel.git/commit
nfs/lsm: make NFSv4 set LSM mount options
authorEric Paris <eparis@redhat.com>
Fri, 2 May 2008 20:42:42 +0000 (13:42 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Fri, 16 May 2008 16:43:27 +0000 (09:43 -0700)
commitabdee4c22c911f9bbe8e16331c63fd93223f9c07
treeaa02bcbc7f332f97c202ee14f8497dcb7b9aa992
parentdaebf4cd016c8261b885335843e6e6a7eb913650
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>
fs/nfs/super.c