Sandboxie could cause a sandboxed app fail to reset its registry settings

Please post your problem description here

Moderator: Barb@Invincea

Post Reply
sbf
Posts: 6
Joined: Tue Mar 06, 2018 1:38 pm

Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by sbf » Tue Mar 06, 2018 3:06 pm

Win 7 32-bit.
Sandboxie v5.22 32-bit.
EmEditor (Latest version).
Tested on a "naked" OS.

For example, EmEditor has a command: Reset All Settings, which removes all its registry data (along with the files for settings) and restarts the app.

However, in a Sandboxie sandbox, EmEditor can never reset its registry settings. When restarted, it uses the old window size and position, for example.

I guess the procedure is:
The sandboxed EmEditor did remove its sandboxed registry data. But as it restarts, Sandboxie fetches the old registry data from outside.

FYI,
Comodo sandbox does not have such a problem. It seems Comodo sandbox adds a mark for the removed registry data:
Type: 0x39c0
Data: (zero-length binary value)
Last edited by sbf on Tue Mar 06, 2018 4:00 pm, edited 1 time in total.

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2337
Joined: Mon Nov 07, 2016 3:10 pm

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by Barb@Invincea » Tue Mar 06, 2018 3:20 pm

Hello sbf ,

Please provide the required information:
viewtopic.php?f=11&t=19746

According to the devs, if you delete a key in Sbie, it will be deleted --> not read from host.
If you clear the sandbox, it will be read from host instead. Are you clearing the contents of your Sandbox?

Regards,
Barb.-

Curt@invincea
Sandboxie Lead Developer
Sandboxie Lead Developer
Posts: 1638
Joined: Fri Jan 17, 2014 5:21 pm
Contact:

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by Curt@invincea » Tue Mar 06, 2018 3:54 pm

sbf wrote:
Tue Mar 06, 2018 3:06 pm
FYI,
Comodo sandbox does not have such a problem. It seems Comodo sandbox adds a mark for the removed registry data:
Sandboxie does the same thing.

sbf
Posts: 6
Joined: Tue Mar 06, 2018 1:38 pm

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by sbf » Tue Mar 06, 2018 4:04 pm

Barb@Invincea wrote:
Tue Mar 06, 2018 3:20 pm
Are you clearing the contents of your Sandbox?
No.
EmEditor resets and restarts at once.
Hope you give it a test on EmEditor.

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2337
Joined: Mon Nov 07, 2016 3:10 pm

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by Barb@Invincea » Tue Mar 06, 2018 4:25 pm

Hello sbf ,

In order to test this behavior I need to know what are you doing, exactly.
Please provide repro steps, include any workspaces you may be using, changes you are looking at, and how are you resetting the application.

Regards,
Barb.-

sbf
Posts: 6
Joined: Tue Mar 06, 2018 1:38 pm

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by sbf » Tue Mar 06, 2018 5:27 pm

OK. Thank you.

Install EmEditor (Installer version, which will use the registry).
Run EmEditor outside (with default settings). Change its window size/position.
(Restart EmEditor. It should use the changed size/position.)

Run EmEditor in a sandbox.
Use the menu: Tools > All Commands.
Then in the (All Commands) popup menu: Tools > Reset All Settings.
Follow the prompts.

After restarted, EmEditor should use the default window size/position (if you don't have my issue).

Barb@Invincea
Sandboxie Support
Sandboxie Support
Posts: 2337
Joined: Mon Nov 07, 2016 3:10 pm

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by Barb@Invincea » Wed Mar 07, 2018 1:43 pm

Hello sbf,

I see the behavior. The window size is still remembered, even after using "Reset all settings".
I have made the devs aware.

As a workaround you can add the following entry under the desired Sandbox:
Open Sandboxie Control
Configure --- > Edit configuration
Find the Sandbox you wish to modify and add this at the end:
WriteKeyPath=HKEY_CURRENT_USER\Software\EmSoft

Save the changes.
Configure--> Reload configuration
Re-try launching your program Sandboxed and resetting all settings.

Here's more info regarding the WriteKeyPath setting:
https://www.sandboxie.com/WriteKeyPath
https://www.sandboxie.com/ResourceAccessSettings#key

Regards,
Barb.-

sbf
Posts: 6
Joined: Tue Mar 06, 2018 1:38 pm

Re: Sandboxie could cause a sandboxed app fail to reset its registry settings

Post by sbf » Thu Mar 08, 2018 6:45 am

Thanks for the info. I see.

I'm curious about the reason of the issue. Could you please explain it a little?

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest