sandboxie-plus / Sandboxie

Sandboxie Plus & Classic
https://Sandboxie-Plus.com
GNU General Public License v3.0
13.63k stars 1.51k forks source link

Add feature on the option ForceFolder to force only type of files #4111

Open 1mm0rt41PC opened 2 months ago

1mm0rt41PC commented 2 months ago

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

I have a use case where I want all EXE launched in C:\Users\ to be sent to the XXXX sandbox. But if I put ForceFolder=C:\Users the user session will be unusable :/

Describe the solution you'd like

Add a pattern matching for ForceFolder:

[myBox]
# Force any exe in C:\Users to run in sandbox
ForceFolder=C:\Users\*.exe
# Force any exe in C:\Users and subfolders to run in sandbox
ForceFolder=C:\Users\**.exe

Describe alternatives you've considered

Use AppLocker but it's very hard to keep rules in Sandboxie and AppLocker