-
Notifications
You must be signed in to change notification settings - Fork 14
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
windows: getting "access denied" notification if named pipe already exists #78
Comments
This is likely what happened. Validation installs the package, runs all changed executables and script files, then performs a Defender scan. Frequently a package will be run multiple times, as it's launched by EXE, 1 or more LNK each on personal and public desktops and start menus, and possibly another means (such as a script file in the package). It's rare for a package to behave one way on first run and then differently on subsequent runs - here it's due to having already created the listener. And the old "meme" of a functional blocker being reported as a permissions error. |
Thank you! We'll see about making that notification on windows a bit more informative. |
See #80 |
…tion Closes #78 Signed-off-by: Daniel Lublin <[email protected]>
…tion Closes #78 Signed-off-by: Daniel Lublin <[email protected]>
…tion Closes #78 Signed-off-by: Daniel Lublin <[email protected]>
…tion Closes #78 Signed-off-by: Daniel Lublin <[email protected]>
…tion Closes #78 Signed-off-by: Daniel Lublin <[email protected]>
A moderator of the winget community pkgs helpfully gave this comment about running tkey-ssh-agent. They wrote
In a VM without the USB key, it gives this message:
and posted a screenshot of a notification from tkey-ssh-agent that readstkey-ssh-agent | Could not create listener: ListenPipe: open \\.\pipe\tkey-ssh-agent: Access is denied.
(microsoft/winget-pkgs#103026 (comment))The TKey USB not being plugged in really should not matter, we don't even try to connect to it until tkey-ssh-agent is asked for some action. We did not run into this ourselves during our testing on Windows 11 running in QEMU, and on Windows 10 on hardware.
Could there be some setup where user running the agent does not have permission to create a named pipe? And does that have any relation to our SecurityDescriptor setup in
listen_windows.go
?One thing though, this is the exact message one gets when trying to run a second tkey-ssh-agent that tries to create the same Named Pipe as the first. Could you have happaned to do that @stephengillie
The text was updated successfully, but these errors were encountered: