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
Segfault, "No protocol specified" #35
Comments
Done a little debugging (courtesy of some |
Ok. Got it. It's the setuid causing trouble. If I follow the instructions outlined here, everything works. |
hmm, that is annoying it doesn't "just" work. But there's really no other way around it |
I guess one way to deal with it would be to build 2 seperate applications, one with elevated permissions (which does the pinging) and one for plotting. Having to execute those commands before using this awesome program is just a pita |
indeed! Sounds like something that needs to be complained about for the people XWayland ppl to address. |
Maybe we should try using capabilities instead of setuid before doing anything more complex. See this article for a short overview: https://www.insecure.ws/linux/getcap_setcap.html |
That works brilliantly! Thanks. If there aren't any major drawbacks to this I'm gonna do a PR |
@dreua thank you so much for that. I had no idea it existed. |
I experienced some really strange behavior when upgrading from the old (setuid) to the new (getcap) version:
Can someone explain 1 or 2? Does someone experience the same? This happens both on Fedora 26 and 27 in X11 mode. (Wayland is available but not activated.) Proposed workaround: Add |
My recommendation would be to do the first option of removing cnping. |
We could just install it with the coreutils install which clears all the permissions and file flags. Its really only a cosmetic difference which archieves the same goal of removing the setuid. |
Kinda odd though that removing the file capability fixes the issue for @dreua . Not sure whats up with that. But can you confirm that it works when you give it only the capability and not the setuid-flag? |
Yes, it works fine with the capability only and with the setuid bit only, but both is a problem. (I have no clue why, I guess it's a bug in Fedora.) I just tried your PR and it works fine for me, thanks 👍 |
Hi, I recently upgraded to Ubuntu 17.10 which uses Wayland instead of X11. cnping used to work before the upgrade, and now it doesn't. I freshly installed cnping from source to make sure I got the latest version, but it segfaults after saying "No protocol specified". Screenshot below.
If you need anything, my grahpics settings etc, just leave a comment. Thanks!
The text was updated successfully, but these errors were encountered: