-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Application in AppSilo can get the whole contents list of %LocalAppData%/%AppData% #40
Comments
Can you share your full manifest file so it's easier for us to reproduce this issue? Our packaged NanaZip can't access |
Hi @tiangao-ms , I recorded a video to show steps. (due to the limits of GitHub, the video is coded by HEVC, some browser may not play.) Recording.2023-06-14.mp4
|
Okay I've done some experiments in this. I think this is the expected behavior. Yes, as AppSilo is built on AppContainer, it inherits some of the AppContainer behaviors. For example, it will by default virtualize AppData and LocalAppData directory (but not subdirectories if the app does not have access to them). Therefore, with the full virtualization, the app can access AppData and LocalAppData, but no their subdirectories. The way that virtualization works is to combine the virtualized directories and the real ones together - when you created the directory (Not sure if I explained it well, it's how current virtualization system work) So which piece of the behavior did you think was a bug or unexpected? MSIX does not support virtualizing an arbitrary directory now - all the virtualizations happen in directories like AppData. Is there a specific usage for the feature? |
@AndromedaMelody I'm trying to repackage NanaZip following the docs, but I keep running into corrupted manifest errors. The one you shared works, but ofc I can't access files. Could you share how you did it? |
Can you share your corrupted manifest so we can take a look at it? It might be that you did not include the headers you need? |
Of course, here's a pastebin: https://pastebin.com/YCLf73xu I am running it in a Hyper V VM on Windows Pro, on the latest insider canary build as of this writing (2591.1010). I downloaded NanaZip from https://github.com/M2Team/NanaZip/releases, then unzipped the msixbundle so I could edit the x64 msix directly. Changes made:
On saving the manifest, I get the following error: |
We're currently tracking this issue. It's a bug in some extension handlers, appExecutionAlias in your case, where if you specify the executable as a parameter for it, it doesn't accept previewsecurity2:RuntimeBehavior. The current work around is to not specify RTB/TL/Executable and let it inherit everything from the application element, but this prevents you from using multiple binaries. |
Version
Windows Version: 10.0.25370.1
Win32 app isolation release version: 0.1.0
Repro Steps
Tested Application: NanaZip
virtualization:FileSystemWriteVirtualization
to enable MSIX File System Virtualization.rescap:Capability
, especiallyisolatedWin32-promptForAccess
andbroadFileSystemAccess
Unexpected Results
I find Application in AppSilo can get the whole contents list of %LocalAppData%/%AppData%(including files/folders don't located in $(LocalCache)) without
isolatedWin32-promptForAccess
andbroadFileSystemAccess
. According to MSIX Doc, is it the feature of MSIX File System Virtualization in order to compatibility? Although the files and sub-folders which aren't in LocalCache can't be accessed. If this is a feature for compatibility, maybe it is better for MSIX to support declaring specific folders that the developer want to be virtualized (#36).The text was updated successfully, but these errors were encountered: