Bug 455569 - [PATCH] Fixing NETWORKING_IPV6=no
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
medium Severity low
: ---
: ---
Assigned To: Bill Nottingham
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2008-07-16 06:32 EDT by Andreas Thienemann
Modified: 2014-03-16 23:15 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2008-07-16 13:33:33 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
Re-enable NETWORKING_IPV6 toggle (458 bytes, patch)
2008-07-16 06:32 EDT, Andreas Thienemann
no flags Details | Diff

  None (edit)
Description Andreas Thienemann 2008-07-16 06:32:47 EDT
In the recent past a change to the ipv6 init code has made the NETWORKING_IPV6
toggle in /etc/sysconfig/network useless. Before this change, the toggle could
be used to disable IPV6 support on a box.

Since this change, the function ipv6_test() which should test for ipv6
functionality inserts the ipv6 module by calling modprobe.

This one-line patch adds a conditional check for the NETWORKING_IPV6 parameter
to the ipv6 initscript and bails if set to no.

That way, if the system administrator configured the system to not use IPV6, no
ipv6 addresses (not even fe80:: ones) are initialized and the NETWORKING_IPV6
parameter is useful again.
Comment 1 Andreas Thienemann 2008-07-16 06:32:47 EDT
Created attachment 311938 [details]
Re-enable NETWORKING_IPV6 toggle
Comment 2 Bill Nottingham 2008-07-16 13:33:33 EDT
Won't help, as it can be autoloaded by the usage of various system calls that
open a socket.

If you want to disable IPv6, the only way to do it is:

  install ipv6 /bin/true

in /etc/modprobe.conf, or a modprobe.d file.
Comment 3 Andreas Thienemann 2008-07-17 05:59:28 EDT
Nope, the correct way of preventing autoloading is an entry alias net-pf-10 off
on modprobe.conf.

This however depends on the documented NETWORKING_IPV6 parameter which suddenly
stopped working.

So I'd ask you to please reconsider your WONTFIX tag as this patch fixes said

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