ipv6: Make mc_forwarding sysctl read-only.
authorDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2009 06:41:03 +0000 (22:41 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Jan 2009 06:41:03 +0000 (22:41 -0800)
The kernel manages this value internally, as necessary, as
VIFs are added/removed and as multicast routers are registered
and deregistered.

Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/addrconf.c

index e92ad8455c63a851ef9966705b627299459f0bb2..f9afb452249c0f1cfbcdac802430d9adb41b694b 100644 (file)
@@ -4250,7 +4250,7 @@ static struct addrconf_sysctl_table
                        .procname       =       "mc_forwarding",
                        .data           =       &ipv6_devconf.mc_forwarding,
                        .maxlen         =       sizeof(int),
-                       .mode           =       0644,
+                       .mode           =       0444,
                        .proc_handler   =       proc_dointvec,
                },
 #endif