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 e92ad84..f9afb45 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