Uploaded image for project: 'Core ReactOS'
  1. Core ReactOS
  2. CORE-14003

NtWriteFile should check for granted access

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Fix Version/s: 0.4.8
    • Component/s: Filesystems, NTCore
    • Labels:
      None

      Description

      Our current implementation just references the received FileObject without checking more into details what were the asked access and what are the granted ones.

      This implementation is wrong and can lead to issues in case a read-only FSD is used and doesn't provide FastIO callback for write, a good example being MS CDFS.

      We should instead be calling ObReferenceFileObjectForWrite() that performs this check.

      (Source: http://fsfilters.blogspot.fr/2012/05/writing-to-read-only-files.html).

      Once this bug is fixed, please remove hack committed in 5f25582

        Attachments

          Activity

            People

            • Assignee:
              Heis Spiter Pierre Schweitzer
              Reporter:
              Heis Spiter Pierre Schweitzer
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: