-
Notifications
You must be signed in to change notification settings - Fork 104
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
wsltty 3.7.6.2 and later exits immediately unless run as administrator #363
Comments
I figured out how to reproduce the issue. If WSL2 is started with administrator privileges initially, an error occurs in the following part of wslbridge2 when there is no permission to obtain information about wslhost.exe: HANDLE process = OpenProcess(PROCESS_QUERY_INFORMATION | PROCESS_VM_READ, FALSE, pid); Why does it not result in an error in wsltty 3.7.6? |
In wsltty 3.7.6, obtaining the VMID from the registry did not require administrative privileges. |
Thanks for the analysis. |
No idea 😔I do not use WSL anymore. |
I have written the patch, so I will submit a pull request tomorrow. |
With wsltty versions 3.7.6.2 and 3.7.7, wsltty now exits immediately. It can run with WSL1, but for WSL2, it can only start when launched as an administrator.
When attempting to run wslbridge2.exe, the following error is displayed:
The text was updated successfully, but these errors were encountered: