LSM: Pass original mount flags to security_sb_mount().
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Sun, 4 Oct 2009 12:49:49 +0000 (21:49 +0900)
committerJames Morris <jmorris@namei.org>
Sun, 11 Oct 2009 23:56:03 +0000 (10:56 +1100)
commita27ab9f26b729326778271c1efd895aef4fda1c4
tree7a8ff136c359603d79b45850c5fd1cdbd2f3b92f
parent8b8efb44033c7e86b3dc76f825c693ec92ae30e9
LSM: Pass original mount flags to security_sb_mount().

This patch allows LSM modules to determine based on original mount flags
passed to mount(). A LSM module can get masked mount flags (if needed) by

flags &= ~(MS_NOSUID | MS_NOEXEC | MS_NODEV | MS_ACTIVE |
   MS_NOATIME | MS_NODIRATIME | MS_RELATIME| MS_KERNMOUNT |
   MS_STRICTATIME);

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Signed-off-by: James Morris <jmorris@namei.org>
fs/namespace.c