-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Setting #![windows_subsystem = "windows"], processes will not be spawned under Windows server 2008 SYSTEM privileges. #113851
Comments
What processes do you expect to not be spawned? |
everyting |
I don't understand the issue you are having. Please give a concrete example of a process that shouldn't have started. |
notepad.exe is one |
If you run your program with SYSTEM privileges and your program then runs If you don't run your program with SYSTEM privileges and yet |
No, I mean only under Windows Server 2008, and running with SYSTEM privileges. |
Do you run your own program with SYSTEM privileges? |
This code is compiled into a binary program (*.exe). Using processhacker runas a cmd.exe with SYSTEM privileges, executing the compiled exe in a cmd with SYSTEM privileges will not spawn a notepad.exe process. |
Have you tried nightly rust? |
Not yet |
Note: Windows 2008 is based on Windows Vista which is out of our support range, unless you mean Windows 2008 R2, which is based on Windows 7 and is currently considered a "best effort" support target. These are also End of Support for Microsoft as well, unfortunately. It would be useful to confirm if this problem is still active on Windows 10, Windows 11, or their "Windows Server" derivatives. |
I am referring to Windows Server 2008 R2, after my testing, Windows 10 does not have this issue. |
Then this issue will be "fixed" in ~7 months by rust-lang/compiler-team#651 |
Triage: no longer relevant because rust-lang/compiler-team#651. |
I tried this code:
I expected to see this happen:
Setting #![windows_subsystem = "windows"], processes will not be spawned under Windows server 2008 SYSTEM privileges.
Meta
rustc --version --verbose
:Backtrace
The text was updated successfully, but these errors were encountered: