Gwiz65 / gvpngate

Gvpngate - VPN Gate frontend for Linux Gnome.
https://gwiz65.github.io/gvpngate/
GNU General Public License v3.0
18 stars 5 forks source link

Use NetworkManager D-Bus API #4

Open jtojnar opened 6 years ago

jtojnar commented 6 years ago

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.

Gwiz65 commented 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.

jtojnar commented 6 years ago

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.

Gwiz65 commented 6 years ago

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.