Skip to content

Commit f98f89a

Browse files
tegdavem330
authored andcommitted
net: tunnels - enable module autoloading
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>
1 parent 2a7ede5 commit f98f89a

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

net/ipv4/ipip.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -486,4 +486,5 @@ static void __exit ipip_fini(void)
486486
module_init(ipip_init);
487487
module_exit(ipip_fini);
488488
MODULE_LICENSE("GPL");
489+
MODULE_ALIAS_RTNL_LINK("ipip");
489490
MODULE_ALIAS_NETDEV("tunl0");

net/ipv6/ip6_tunnel.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
6161
MODULE_AUTHOR("Ville Nuorvala");
6262
MODULE_DESCRIPTION("IPv6 tunneling device");
6363
MODULE_LICENSE("GPL");
64+
MODULE_ALIAS_RTNL_LINK("ip6tnl");
6465
MODULE_ALIAS_NETDEV("ip6tnl0");
6566

6667
#ifdef IP6_TNL_DEBUG

net/ipv6/sit.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,4 +1828,5 @@ static int __init sit_init(void)
18281828
module_init(sit_init);
18291829
module_exit(sit_cleanup);
18301830
MODULE_LICENSE("GPL");
1831+
MODULE_ALIAS_RTNL_LINK("sit");
18311832
MODULE_ALIAS_NETDEV("sit0");

0 commit comments

Comments
 (0)