Bug 147661 - NetworkManager should not send kernel version as part of DHCP packets
Summary: NetworkManager should not send kernel version as part of DHCP packets
Alias: None
Product: Fedora
Classification: Fedora
Component: NetworkManager
Version: 3
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Dan Williams
QA Contact:
Depends On:
Blocks: 137160
TreeView+ depends on / blocked
Reported: 2005-02-10 05:44 UTC by David Baron
Modified: 2007-11-30 22:11 UTC (History)
1 user (show)

Clone Of:
Last Closed: 2005-02-18 18:39:52 UTC

Attachments (Terms of Use)

Description David Baron 2005-02-10 05:44:03 UTC
Description of problem:  NetworkManager sends the full kernel version
as part of the DHCP packets (the second set of dhcp packets sent,
anyway; the first set seem to come from dhclient but then get ignored
by NetworkManager).

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

How reproducible:  Always, I think.

Steps to Reproduce:
1. stop NetworkManager
2. bring all network interfaces down
3. start capturing packets using ethereal
4. restart NetworkManager
5. examine the last DHCP Discover and last DHCP request packets logged
Actual results:  These contain the full kernel version (as part of
what is essentially the output of uname -srm)

Expected results:  The kernel version shouldn't be sent.

Additional info:  For reasons for concern about sending the kernel
version, see https://bugzilla.mozilla.org/show_bug.cgi?id=57555 for
the reasons that Mozilla no longer sends the kernel version in the
User-Agent header.  Essentially, it's an advertisement of potential
security vulnerabilities.

Comment 1 David Baron 2005-02-10 05:46:41 UTC
The uname call in question is in class_id_setup in dhcpd/client.c

Comment 2 Dan Williams 2005-02-10 06:32:14 UTC
True, we probably shouldn't be doing this.  It's kind of left over
from dhcpcd.

Comment 3 Dan Williams 2005-02-10 06:38:24 UTC
Would just using the sysname field of the uname() call be OK in your

Comment 4 David Baron 2005-02-10 07:24:46 UTC
It seems reasonable to me, although I'm not really sure what the field
is for.  (dhclient doesn't seem to send it at all.)

Comment 5 Dan Williams 2005-02-10 16:14:30 UTC
I assume that administrators can set clients up to use a particular value in
this field, say fill it with "Engineering" or "Engineering Linux" or something
liek that to direct certain DHCP options at certain classes of hosts.

Anyway, fixed in CVS.

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