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)
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>

No differences found