K 10 svn:author V 3 bms K 8 svn:date V 27 2007-03-04T14:34:42.000000Z K 7 svn:log V 823 MFC: Implement ifnet cloning for tun(4)/tap(4). Make devfs cloning a sysctl/tunable which defaults to on. If devfs cloning is enabled, only the super-user may create tun(4)/tap(4)/vmnet(4) instances. Devfs cloning is still enabled by default; it may be disabled from the loader or via sysctl with "net.link.tap.devfs_cloning" and "net.link.tun.devfs_cloning". Disabling its use affects potentially all tun(4)/tap(4) consumers including OpenSSH, OpenVPN and VMware. Revision Changes Path 1.18 +32 -5 src/share/man/man4/tap.4 1.24 +33 -4 src/share/man/man4/tun.4 1.69 +126 -32 src/sys/net/if_tap.c 1.162 +77 -7 src/sys/net/if_tun.c PR: 105228 (potentially also 90413, 105570) Submitted by: Landon Fuller Tested by: Andrej Tobola Approved by: core (rwatson) END