Open jtojnar opened 6 years ago
If you know a way to create the system-connection file with the proper rights that network manager will accept without using an suid exe please let me know.
libnm seems to allow creating VPNs: https://developer.gnome.org/libnm/stable/NMSettingVpn.html#nm-setting-vpn-get-user-name
GNOME Shell uses it and I do not see any suid programs.
I will look into that. To be completely honest, this whole program is really just one big hack. I got sick of manually creating VPN connections to use the VPN Gate servers. The whole thing needs to be rewritten without using execlp() to execute other programs and to add some real error handling. You are first real feedback I've had on this in over 2 years.
I probably won't attempt to rewrite this until Fall since programming is more of cold weather hobby for me.
I am trying to package this on Nixpkgs but packages are not allowed to contain SUID binaries for security reasons. It would be nice if the application used a D-Bus API instead.