1. 14 3月, 2012 7 次提交
  2. 07 3月, 2012 1 次提交
  3. 01 3月, 2012 1 次提交
    • T
      TOMOYO: Fix mount flags checking order. · df91e494
      Tetsuo Handa 提交于
      Userspace can pass in arbitrary combinations of MS_* flags to mount().
      
      If both MS_BIND and one of MS_SHARED/MS_PRIVATE/MS_SLAVE/MS_UNBINDABLE are
      passed, device name which should be checked for MS_BIND was not checked because
      MS_SHARED/MS_PRIVATE/MS_SLAVE/MS_UNBINDABLE had higher priority than MS_BIND.
      
      If both one of MS_BIND/MS_MOVE and MS_REMOUNT are passed, device name which
      should not be checked for MS_REMOUNT was checked because MS_BIND/MS_MOVE had
      higher priority than MS_REMOUNT.
      
      Fix these bugs by changing priority to MS_REMOUNT -> MS_BIND ->
      MS_SHARED/MS_PRIVATE/MS_SLAVE/MS_UNBINDABLE -> MS_MOVE as with do_mount() does.
      
      Also, unconditionally return -EINVAL if more than one of
      MS_SHARED/MS_PRIVATE/MS_SLAVE/MS_UNBINDABLE is passed so that TOMOYO will not
      generate inaccurate audit logs, for commit 7a2e8a8f "VFS: Sanity check mount
      flags passed to change_mnt_propagation()" clarified that these flags must be
      exclusively passed.
      Signed-off-by: NTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
      Signed-off-by: NJames Morris <james.l.morris@oracle.com>
      df91e494
  4. 28 2月, 2012 10 次提交
  5. 16 2月, 2012 2 次提交
  6. 14 2月, 2012 2 次提交
  7. 10 2月, 2012 2 次提交
  8. 20 1月, 2012 2 次提交
  9. 19 1月, 2012 3 次提交
  10. 18 1月, 2012 9 次提交
  11. 13 1月, 2012 1 次提交