]> git.karo-electronics.de Git - karo-tx-linux.git/commit
LSM: Add flags field to security_sb_set_mnt_opts for in kernel mount data.
authorDavid Quigley <dpquigl@davequigley.com>
Wed, 22 May 2013 16:50:36 +0000 (12:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Thu, 30 May 2013 15:29:57 +0000 (11:29 -0400)
commit1c4494f61c5fdf2b429d25fd5220387710e9d594
tree3e3cd7cd832749b88082825dfdf797f1695fed1d
parente4657603c22ab8698a68be5458698f7030986e5f
LSM: Add flags field to security_sb_set_mnt_opts for in kernel mount data.

There is no way to differentiate if a text mount option is passed from user
space or the kernel. A flags field is being added to the
security_sb_set_mnt_opts hook to allow for in kernel security flags to be sent
to the LSM for processing in addition to the text options received from mount.
This patch also updated existing code to fix compilation errors.

Acked-by: Eric Paris <eparis@redhat.com>
Acked-by: James Morris <james.l.morris@oracle.com>
Signed-off-by: David P. Quigley <dpquigl@tycho.nsa.gov>
Signed-off-by: Miguel Rodel Felipe <Rodel_FM@dsi.a-star.edu.sg>
Signed-off-by: Phua Eu Gene <PHUA_Eu_Gene@dsi.a-star.edu.sg>
Signed-off-by: Khin Mi Mi Aung <Mi_Mi_AUNG@dsi.a-star.edu.sg>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/super.c
include/linux/security.h
security/capability.c
security/security.c
security/selinux/hooks.c