Code Monkey home page Code Monkey logo

Comments (3)

billziss-gh avatar billziss-gh commented on May 18, 2024

Thanks for the bug report, @efeat.

Let me confirm that I understand what you are saying: this problem happens when passthrough is run on Win7 against your private build of WinFsp from commit fa652cd. Is this correct?

You are not somehow running passthrough against RC1 are you? [In fact you should not be able to build it against RC1, because the definition of ReadDirectory changed (regrettably).]

Can you please confirm for me that the problem happens when run against the officially released RC2?

https://github.com/billziss-gh/winfsp/releases/download/v1.0RC2/winfsp-1.0.17039.msi

Here are the passthrough logs for the calc.exe program only on Win 7:
passthrough-x64.log.zip

Excellent! Thank you for those.

from winfsp.

billziss-gh avatar billziss-gh commented on May 18, 2024

Ok, I just did some more testing and I am now suspecting some kind of security issue.

The following tests were run on Windows 7 Enterprise (Version 6.1, Build 7601 Service Pack 1).

When running passthrough from the command line under a normal account:

fail1

I get:

fail2

I also observe a bunch of failed QuerySecurity on the logs (c0000022 is STATUS_ACCESS_DENIED -- these obviously come from NTFS that passthrough uses as its storage medium):

passthrough-x64[TID=1c6c]: FFFFFA800DB05010: >>QuerySecurity 0000000000000000:00000000002984B0
passthrough-x64[TID=1c6c]: FFFFFA800DB05010: <<QuerySecurity IoStatus=c0000022[0]
passthrough-x64[TID=1c6c]: FFFFFA800DB05010: >>QuerySecurity 0000000000000000:00000000002984B0
passthrough-x64[TID=1c6c]: FFFFFA800DB05010: <<QuerySecurity IoStatus=c0000022[0]
passthrough-x64[TID=1c6c]: FFFFFA800DB05010: >>QuerySecurity 0000000000000000:00000000002984B0
passthrough-x64[TID=1c6c]: FFFFFA800DB05010: <<QuerySecurity IoStatus=c0000022[0]
passthrough-x64[TID=1c6c]: FFFFFA800DB0A220: >>QuerySecurity 0000000000000000:00000000002984B0
passthrough-x64[TID=1c6c]: FFFFFA800DB0A220: <<QuerySecurity IoStatus=c0000022[0]

OTOH, if I map a drive from the Explorer which runs passthrough under the SYSTEM account:

pass1

I get:

pass2

So in this case it works.

The SYSTEM account has the backup/restore privileges and is able to open files and query security for all accounts.

EDIT: The STATUS_ACCESS_DENIED is probably because the handles were open with ACCESS_SYSTEM_SECURITY and this is not handled properly. I am investigating.

from winfsp.

billziss-gh avatar billziss-gh commented on May 18, 2024

I am closing this issue due to inactivity.

from winfsp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.