sandboxie-plus / Sandboxie

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

Rockstar Games Launcher does not run in a standard sandbox #2236

Open Taeyeonzpx opened 1 year ago

Taeyeonzpx commented 1 year ago

Describe what you noticed and did

I always fail to start the "Rockstar Games Launcher". the phenomenon is that the "RockstarService. exe" service terminates at the beginning, causing startup failure. maybe it is not a problem with this service,

How often did you encounter it so far?

No response

Affected program

Rockstar Games Launcher

Download link

https://socialclub.rockstargames.com/rockstar-games-launcher

Where is the program located?

The program is installed only outside the sandbox.

Expected behavior

It should start normally like outside the sandbox

What is your Windows edition and version?

Windows11 Home 21H2 64bit

In which Windows account you have this problem?

Not relevant to my request.

Please mention any installed security software

Huorong

What version of Sandboxie are you running?

Sandboxie-Plus 1.3.3 64bit

Is it a new installation of Sandboxie?

I just updated Sandboxie from a previous version (to be specified).

Is it a regression?

No response

In which sandbox type you have this problem?

In a Standard isolation sandbox (yellow sandbox icon).

Can you reproduce this problem on an empty sandbox?

I can confirm it also on an empty sandbox.

Did you previously enable some security policy settings outside Sandboxie?

No response

Crash dump

No response

Trace log

No response

Sandboxie.ini configuration

Enabled=y
AutoRecover=n
BlockNetworkFiles=y
RecoverFolder=%{374DE290-123F-4565-9164-39C4925E467B}%
RecoverFolder=%Personal%
RecoverFolder=%Desktop%
BorderColor=#00ffff,on,6
Template=OpenBluetooth
Template=SkipHook
Template=FileCopy
Template=qWave
Template=BlockPorts
Template=LingerPrograms
Template=AutoRecoverIgnore
ConfigLevel=9
BoxNameTitle=y
CopyLimitKb=-1
FileTrace=*
ClosePrintSpooler=y
ClosedFilePath=<BlockNetDevices>,InternetAccessDevices
FakeAdminRights=y
Luro223 commented 1 year ago

@Taeyeonzpx try to add the line on your [sandbox] in Sandboxie.ini UseElectronWorkaround=Program.exe,n where program.exe is your package name

Taeyeonzpx commented 1 year ago

@Taeyeonzpx try to add the line on your [sandbox] in Sandboxie.ini UseElectronWorkaround=Program.exe,n where program.exe is your package name

I tried to add this line of instructions and tried "UseElectronWorkaround=LauncherPatcher.exe,n", "UseElectronWorkaround=RockstarSteamHelper.exe,n" and "UseElectronWorkaround=RockstarService.exe,n" respectively, but unfortunately the same phenomenon still exists

Luro223 commented 1 year ago

@Taeyeonzpx tested, works just fine, try to enable WFP and Win32k calls hook Also it might be an issue with sandboxie installation or Windows11 000 also try to launch it from sandboxed explorer

Taeyeonzpx commented 1 year ago

@Taeyeonzpx tested, works just fine, try to enable WFP and Win32k calls hook Also it might be an issue with sandboxie installation or Windows11 000 also try to launch it from sandboxed explorer

my problem is that "RockstarService. exe" cannot be started. Not all programs cannot be started, so this should not be a sandbox installation problem. In addition, I don't know how to enable WFP and Win32k yet? How should I operate it? I would like to try 屏幕截图 2022-09-16 230611 屏幕截图 2022-09-16 184956

Luro223 commented 1 year ago

@Taeyeonzpx 001 for global settings after changing check if your [sandbox] has BlockNetworkFiles=y line

Taeyeonzpx commented 1 year ago

@Taeyeonzpx 001 for global settings after changing check if your [sandbox] has BlockNetworkFiles=y line

I just tried your method, but my "RockstarService.exe" service is terminated as before

Luro223 commented 1 year ago

I just tried your method, but my "RockstarService.exe" service is terminated as before

Hmm my config looks like this:

Luro223 commented 1 year ago

@Taeyeonzpx okay, try to create new sandbox, go to your newly created sandbox>Sandbox Options>Edit Ini Section>Edit ini and replace everything with my settings If issue still persists then this might be the issue related to OS compatibility or security software, unfortunately I can't replicate issue as I have windows 10 and virtualization is currently not available for me

Taeyeonzpx commented 1 year ago

@Taeyeonzpx okay, try to create new sandbox, go to your newly created sandbox>Sandbox Options>Edit Ini Section>Edit ini and replace everything with my settings If issue still persists then this might be the issue related to OS compatibility or security software, unfortunately I can't replicate issue as I have windows 10 and virtualization is currently not available for me

I have just checked and tried your configuration. It is the same phenomenon. But I also found that when installed in the sandbox, it can start normally. When installed outside the sandbox, it will happen to me

Taeyeonzpx commented 1 year ago

@Taeyeonzpx okay, try to create new sandbox, go to your newly created sandbox>Sandbox Options>Edit Ini Section>Edit ini and replace everything with my settings If issue still persists then this might be the issue related to OS compatibility or security software, unfortunately I can't replicate issue as I have windows 10 and virtualization is currently not available for me

I tried to install the sand table on a new win11 virtual machine, then install the software into the sand table, and then start it. Everything is normal. If I empty the sand table, install the software outside the sand box, and then start it with the sand table, it will be the same to me

Luro223 commented 1 year ago

@Taeyeonzpx well it crashes because you're trying to launch the service(which is outside sandboxie) inside sandboxie When you're trying to launch the rockstar launcher inside sandboxie as the local services from the launcher are already running it will crash sandboxie Either you must launch service(s) inside with same command line arguments or completely install it inside service or the whole launcher inside sandboxie

Taeyeonzpx commented 1 year ago

@Taeyeonzpx well it crashes because you're trying to launch the service(which is outside sandboxie) inside sandboxie When you're trying to launch the rockstar launcher inside sandboxie as the local services from the launcher are already running it will crash sandboxie Either you must launch service(s) inside with same command line arguments or completely install it inside service or the whole launcher inside sandboxie

but my local is not running (I don't see the software process), so where is the problem? Is it the sandbox or the "rockstar launcher"? how to adjust it so that it can be installed outside the sandbox and started normally in the sandbox? I don't want to put him on the sand table

Taeyeonzpx commented 1 year ago

@Taeyeonzpx well it crashes because you're trying to launch the service(which is outside sandboxie) inside sandboxie When you're trying to launch the rockstar launcher inside sandboxie as the local services from the launcher are already running it will crash sandboxie Either you must launch service(s) inside with same command line arguments or completely install it inside service or the whole launcher inside sandboxie

However, I did find that the "RockstarService.exe" service does exist in the task manager, but there is no "RockstarService.exe" service in the sand table process. I manually stopped the "RockstarService.exe" service of the task manager and created the "RockstarService.exe" service in the sand table, and the "RockstarService.exe" can run normally. Why does the "RockstarService.exe" service start outside the sand table when the Rockstar Games Launcher is started??? Is this a sand table leak?

Luro223 commented 1 year ago

@Taeyeonzpx again if service is installed on local machine you must install the service or the whole launcher inside sandboxie as the sandbox sometimes fails to redirect all actions with services/drivers that are already running externally If it works, leave it as is and do not install it outside the sandbox and then run it in the sandbox to avoid errors About leaks: nope, no leaks at all for your case

Taeyeonzpx commented 1 year ago

@Taeyeonzpx again if service is installed on local machine you must install the service or the whole launcher inside sandboxie as the sandbox sometimes fails to redirect all actions with services/drivers that are already running externally If it works, leave it as is and do not install it outside the sandbox and then run it in the sandbox to avoid errors About leaks: nope, no leaks at all for your case

Oh, I see. Thank you very much. Thank you very much for your help

Luro223 commented 1 year ago

@Taeyeonzpx always glad to help, you can close if you think there's no more issues. Or you can mention isaak and ask him if it's still an issue Have a great time!

isaak654 commented 1 year ago

I think I found an alternative way to run this launcher while it is installed only outside the sandbox.

  1. Add the following command to your sandbox: StartService=Rockstar Service
  2. Start Rockstar Games Launcher shortcut on your sandbox and connect your account to see if everything is ok
  3. Close the sandboxed launcher
  4. Now you could remove the StartService command, which should not be needed for subsequent launches

[!WARNING] This workaround stopped working a long time ago: #2707

Taeyeonzpx commented 1 year ago

I think I found an alternative way to run this launcher while it is installed only outside the sandbox.

  1. Add the following command to your sandbox: StartService=Rockstar Service
  2. Start Rockstar Games Launcher shortcut on you sandbox and connect your account to see if everything is ok
  3. Close the sandboxed launcher
  4. Now you could remove the StartService command, which should not be needed for subsequent launches

Warning This workaround stopped working a long time ago: #2707

If other platforms or software also encounter this problem, do you still need to add this command separately?

Luro223 commented 1 year ago

If other platforms or software also encounter this problem, do you still need to add this command separately?

Yeah you can try to use this workaround for similar issues

Taeyeonzpx commented 1 year ago

If other platforms or software also encounter this problem, do you still need to add this command separately?

Yeah you can try to use this workaround for similar issues

Can this place be automated?

Luro223 commented 1 year ago

Can this place be automated?

Nope such feature is not implemented, but you can create the script for automation(for example bat file)

Taeyeonzpx commented 1 year ago

Can this place be automated?

Nope such feature is not implemented, but you can create the script for automation(for example bat file)

oh, oh, well, thank you!

Luro223 commented 1 year ago

oh, oh, well, thank you!

No problem, have a great time

isaak654 commented 1 year ago
  1. If StartService can't be automated when needed, this issue is still a good chance to know why. Why can it not be reasonably used by Sandboxie itself? @DavidXanatos

2. This feature set requires a thorough explanation for more than a decade. (https://github.com/sandboxie-plus/sandboxie-docs/pull/90)

Luro223 commented 1 year ago
  1. If StartService can't be automated when needed, this issue is still a good chance to know why. Why can it not be reasonably used by Sandboxie itself? @DavidXanatos

~2. This feature set requires a thorough explanation for more than a decade.~ (sandboxie-plus/sandboxie-docs#90)

Well, yes, these things need to be automated, otherwise it will cause issues

Why can it not be reasonably used by Sandboxie itself?

Probably because the service is already installed outside the sandbox and running, which is causing the issue. And yeah such things must be automatically redirected to sandboxie possibly with a request to terminate a service running from the outside, or with the specific feature - automatic termination and redirection to the sandbox