lkml.org 
[lkml]   [2014]   [Jul]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 3.2 111/125] net: tunnels - enable module autoloading
    3.2.61-rc1 review patch.  If anyone has any objections, please let me know.

    ------------------

    From: Tom Gundersen <teg@jklm.no>

    [ Upstream commit f98f89a0104454f35a62d681683c844f6dbf4043 ]

    Enable the module alias hookup to allow tunnel modules to be autoloaded on demand.

    This is in line with how most other netdev kinds work, and will allow userspace
    to create tunnels without having CAP_SYS_MODULE.

    Signed-off-by: Tom Gundersen <teg@jklm.no>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
    ---
    net/ipv4/ipip.c | 1 +
    net/ipv6/ip6_tunnel.c | 1 +
    net/ipv6/sit.c | 1 +
    3 files changed, 3 insertions(+)

    --- a/net/ipv4/ipip.c
    +++ b/net/ipv4/ipip.c
    @@ -909,4 +909,5 @@ static void __exit ipip_fini(void)
    module_init(ipip_init);
    module_exit(ipip_fini);
    MODULE_LICENSE("GPL");
    +MODULE_ALIAS_RTNL_LINK("ipip");
    MODULE_ALIAS_NETDEV("tunl0");
    --- a/net/ipv6/ip6_tunnel.c
    +++ b/net/ipv6/ip6_tunnel.c
    @@ -57,6 +57,7 @@
    MODULE_AUTHOR("Ville Nuorvala");
    MODULE_DESCRIPTION("IPv6 tunneling device");
    MODULE_LICENSE("GPL");
    +MODULE_ALIAS_RTNL_LINK("ip6tnl");
    MODULE_ALIAS_NETDEV("ip6tnl0");

    #ifdef IP6_TNL_DEBUG
    --- a/net/ipv6/sit.c
    +++ b/net/ipv6/sit.c
    @@ -1293,4 +1293,5 @@ static int __init sit_init(void)
    module_init(sit_init);
    module_exit(sit_cleanup);
    MODULE_LICENSE("GPL");
    +MODULE_ALIAS_RTNL_LINK("sit");
    MODULE_ALIAS_NETDEV("sit0");


    \
     
     \ /
      Last update: 2014-07-09 09:21    [W:4.075 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site