Skip to content
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

[Feature]: API for creating app silos independent of package identity #87

Open
mikehearn opened this issue Jan 21, 2025 · 0 comments
Open
Labels
feature-request Feature or enhancement request

Comments

@mikehearn
Copy link

Summary

The underlying APIs (job control, app containers) allow sandboxes to be created without package identity or static declarations. It would be good to support a similar API for win32 app isolation, so that properly brokered silos can be created dynamically without reference to an AppxManifest.

Pitch

Sandboxing is a generally useful capability. The most widely deployed use of Win32's current sandboxing APIs is of course Chrome/Edge, which decides what the sandbox policies should be itself.

The current win32 isolation feature seems designed from a high-level-first perspective, in which it's assumed sandbox policies may be implemented by people who aren't the original app authors, hence the ACP tool and integration into MSIX. That's fine and a useful thing to have, but there are use cases where apps may want to set up sandboxes itself just like Chrome does. These will typically be obscure use cases that it's not worth addressing directly in Windows. Examples might be:

  • An app that downloads and executes sandboxed plugins. The capabilities might be fixed and should not be under the control of the plugin itself.
  • Command line apps. The capabilities might be worked out by looking at the command line flags, current working directory, etc.
  • Cases where the permissions UI needs to be customized.

If there is a Win32 or WinRT API to create and change capabilities of an app silo on the fly, this would enable many such use cases.

@mikehearn mikehearn added the feature-request Feature or enhancement request label Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Feature or enhancement request
Projects
None yet
Development

No branches or pull requests

1 participant