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

Create a new sandbox when starting a program and close it after the program terminates. #1936

Closed
ZacharyJia opened this issue Jun 10, 2022 · 3 comments
Labels
added in next build Added in the next Sandboxie version Feature request New feature or idea more info needed More information is needed to move forward

Comments

@ZacharyJia
Copy link

Is your feature request related to a problem or use case?

No.

Describe the solution you'd like

Provide a cmd options in Start.exe, which allows users start a program with a new sandbox, and another options for delete this box after the program terminates.

Describe alternatives you've considered

No response

@ZacharyJia ZacharyJia added the Feature request New feature or idea label Jun 10, 2022
@DavidXanatos
Copy link
Member

DavidXanatos commented Jun 10, 2022

this sounds usefull on a first glance, but I am worried that by not being able to specify any customization such boxes would be quite useless.
This would need to before running the program first take the user through the box options window to set presets,
how would you imagine that to work

@DavidXanatos DavidXanatos added the more info needed More information is needed to move forward label Jun 10, 2022
@ZacharyJia
Copy link
Author

This would need to before running the program first take the user through the box options window to set presets, how would you imagine that to work

How about a box option template file for the new box? A default template is used if no template is specified.

Another user-friendly options is that, users may allowed to specify an existing box as a template box, the newly created box will follow the template box's options. For users, they could setup the box at the GUI, and for developers, it's just a box duplication, which seems easier to implement.

@DavidXanatos DavidXanatos added the added in next build Added in the next Sandboxie version label Jan 29, 2023
@DavidXanatos
Copy link
Member

Added to next build, well somewhat, the functionality is not in start.exe, but in sandman.exe so it is contingent on sandman running.
To make a box auto remove itself AutoDelete=y and AutoRemove=y must be set on that box and it needs to be created first,
all this can be done using SbieIni.exe with it you can create a new box, set whatever settings you want including the 2 required once, and all that sing the command line.

So the envisioned usecase is to create a *.cmd script which takes the command to be run as argument and configures the temporary sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
added in next build Added in the next Sandboxie version Feature request New feature or idea more info needed More information is needed to move forward
Projects
None yet
Development

No branches or pull requests

2 participants