https://bugs.winehq.org/show_bug.cgi?id=55763
Bug ID: 55763 Summary: Electron projects using sudo-prompt think that permission was not granted Product: Wine Version: 8.17 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: blocker Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: skecthysites@gmail.com Distribution: ---
Electron projects using sudo-prompt think that permission was not granted and behave as if the prompt was closed without granting permission.
To reproduce: 1. Install wine-bug-demo from here: https://github.com/zurgeg/Wine-Bug/releases/tag/1.0.0 2. Extract linux-unpacked.tar.gz 3. Run wine-bug-demo 4. Note that it asks you for your user password 5. It will execute just fine once you enter your user password, then you can interrupt it 6. Install wine-bug-demo.Setup.1.0.0.exe 7. After installing, it will attempt to run, at which point it will crash with the error "User did not grant permission"
https://bugs.winehq.org/show_bug.cgi?id=55763
skecthysites@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Severity|blocker |major
https://bugs.winehq.org/show_bug.cgi?id=55763
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Ever confirmed|0 |1 CC| |z.figura12@gmail.com Severity|major |normal Component|-unknown |programs
--- Comment #1 from Zeb Figura z.figura12@gmail.com --- 02a4:fixme:powershell:wmain stub: L"powershell.exe" L"Start-Process" L"-FilePath" L"'C:\users\leslie\Temp\bee3d787cd5f2e84d5a40cfa57e554b3\execute.bat'" L"-WindowStyle" L"hidden" L"-Verb" L"runAs"
It needs powershell.
https://bugs.winehq.org/show_bug.cgi?id=55763
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Summary|Electron projects using |Electron projects using |sudo-prompt think that |sudo-prompt think that |permission was not granted |permission was not granted | |(needs powershell | |implementation)
https://bugs.winehq.org/show_bug.cgi?id=55763
Zeb Figura z.figura12@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download
--- Comment #2 from Zeb Figura z.figura12@gmail.com --- As a side note, the application fails even earlier for me. It's probably a bit random whether it fails or not, it depends on how handles are allocated. The cause is that it calls GetSecurityInfo(SE_WINDOW_HANDLE, GetThreadDesktop(GetCurrentThreadId())). Currently we don't respect SE_WINDOW_HANDLE and just assume everything is a kernel handle, which is broken, but may work accidentally if the user handle happens to match an existing kernel handle.
I've sent merge request 4105 for this.
https://bugs.winehq.org/show_bug.cgi?id=55763
Fabian Maurer dark.shadow4@web.de changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |dark.shadow4@web.de