Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 625420 - >=net-misc/gns3-gui-2 and >=net-misc/gns3-server-2 ask for root permissions at startup for ubridge which is not available in the system
Summary: >=net-misc/gns3-gui-2 and >=net-misc/gns3-server-2 ask for root permissions a...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Aaron Bauman (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2017-07-17 15:09 UTC by Gleb
Modified: 2018-03-18 19:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
proposed ubridge ebuild (ubridge-0.9.11.ebuild,732 bytes, text/plain)
2017-07-19 10:02 UTC, needle
Details
a patch for the ebuild (ubridge-Makefile-fixup.patch,915 bytes, patch)
2017-07-19 10:03 UTC, needle
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Gleb 2017-07-17 15:09:34 UTC
Since GNS3 2.0, something called uBridge is used to do some stuff, here's the description from [1]:
"uBridge is a simple application to create user-land bridges between various technologies. Currently bridging between UDP tunnels, Ethernet and TAP interfaces is supported. Packet capture is also supported."

It looks like uBridge is not available in Gentoo which is fine, but GNS3 asks root permissions, initial message:
"uBridge requires root permission to interact with network interfaces. Set root permission to uBridge? All admin users on the system will be able to read packet from the network interfaces"
and then offers to change the root of /home/<username> with the following commands:

chown root:admin /home/<username>
chmod 4750 /home/<username>

What is the expected behavior in this case? Is uBridge really necessary for GNS3? Is there any way to disable this request as there's no ubridge in the system?

It might be misleading as there's no clear explanation of what is this about and how to proceed.

[1]: https://github.com/GNS3/ubridge
Comment 1 needle 2017-07-19 10:02:39 UTC
Created attachment 485648 [details]
proposed ubridge ebuild
Comment 2 needle 2017-07-19 10:03:28 UTC
Created attachment 485650 [details, diff]
a patch for the ebuild
Comment 3 needle 2017-07-19 10:03:44 UTC
Confirming it. The installation routine since GNS2.x requests ubridge or at least some assistant wants it to make initial configuration for this as Gleb has written.

I have attached a working ubridge ebuild to the bug report, and a patch that is called in that ebuild. (works for me)

There are some questions that needs to be answered before proceding further.

1) GNS3 2.x has 3 different installation modes:
  - running GNS3-gui and gns3-server on one host
  - running GNS-gui locally and gns3-server on far end server
  - running GNS3 with a vmware image

once ubridge has been installed on the target system shall all 3 installation modes, or at least 2 installtion alternatives be covered?
I have no option to test all 3 cases. It has been tested here only if runnig ubridge locally (gns3-server and gns3-gui on same host).

2) If done properly the ebuild maybe should add a system group, where all local users running gns3 would need be part of this group. Similarly to wireshark ebuild or docker ebuild. The user needs to be part of this group. I hope this makes sense. This ebuild atteched to that bug report does not do it, I change the group assignment manually. So that should be corrected in the ebuild.

3) If the  GNS3 ebuild would not support ubridge. The gns3 source would be needed to be patched to prevent running this assistant each time gns is started.

To be honest the attached ebuild + patch would need to be reviewed by somebody who is more experienced with gentoo then me. They work for me, but they still are not pretty.
Comment 4 needle 2017-07-19 10:08:43 UTC
I have borked the file names as attaching it.
In my local repository these are named like below:

net-misc/ubridge/ubridge-0.9.11.ebuild
net-misc/ubridge/files/ubridge-Makefile-fixup.patch

The installed version of ubridge over here is 0.9.11
Comment 5 needle 2018-03-09 09:36:52 UTC
Ubridge has been added to portage. I do not know when:

[I] net-misc/ubridge                                                                                                                                                                                                                                                            
     Available versions:  (~)0.9.14{tbz2} {+filecaps +system-iniparser}                                                                                                                                                                   
     Installed versions:  0.9.14{tbz2}(19:22:08 04/03/18)(filecaps)                                                                                                                                                                                                             
     Homepage:            https://github.com/GNS3/ubridge
     Description:         Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces

Since using the version 0.9.14 of ubridge I have no further request like such in this bugreport described.
 
Works for me.

Gleb could you confirm this still is a problem?