Bug 682366 - assumes all ethernet devices are named ethX
Summary: assumes all ethernet devices are named ethX
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: mysql
Version: 6.1
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: rc
: ---
Assignee: Michal Schorm
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On: 682365
Blocks: 682269 947775 1070830 1159820
TreeView+ depends on / blocked
 
Reported: 2011-03-05 00:13 UTC by Bill Nottingham
Modified: 2017-04-12 10:21 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 682365
Environment:
Last Closed: 2017-04-10 08:22:54 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description Bill Nottingham 2011-03-05 00:13:46 UTC
+++ This bug was initially created as a clone of Bug #682365 +++

Description of problem:

Network devices can have arbitrary names, and due to
http://fedoraproject.org/wiki/Features/ConsistentNetworkDeviceNaming, will have
different names in Fedora 15.

my_gethwaddr.c:

  strnmov(ifr.ifr_name, "eth0", sizeof(ifr.ifr_name) - 1);

  do
  {
    if (ioctl(fd, SIOCGIFHWADDR, &ifr) >= 0)
    {
      memcpy(to, &ifr.ifr_hwaddr.sa_data, ETHER_ADDR_LEN);
      res= memcmp(to, zero_array, ETHER_ADDR_LEN) ? 0 : 1;
    }
  } while (res && (errno == 0 || errno == ENODEV) && ifr.ifr_name[3]++ < '6');

Now, since this is only used to initialize the UUID (afaict), and there is fallback code for that, it may not be critical to fix this. Filing for completeness.

Version-Release number of selected component (if applicable):

mysql-5.5.8

How reproducible:

By inspection.

Comment 2 RHEL Program Management 2011-03-05 00:38:26 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 3 Tom Lane 2012-02-14 17:37:03 UTC
This has been dealt with in Fedora, so will show up in RHEL7.  Do we really need to fix it in RHEL6?

Comment 4 Honza Horak 2013-10-18 08:21:43 UTC
Just FTR, MariaDB upstream used a bit different approach as a fix than we did in Bug #682365, so in case we're gonna fix it for RHEL-6, we should look at the MariaDB's solution as well.

http://bazaar.launchpad.net/~maria-captains/maria/5.5/view/head:/mysys/my_gethwaddr.c#L85


Note You need to log in before you can comment on or make changes to this bug.