diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2019-10-21 14:38:11 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2019-10-21 14:38:11 +0000 |
commit | 3d5013337a7136f8ee099cb27f0c66160dd27c91 (patch) | |
tree | 38fd73b127c5cd2abcedc96d95cc3eeac8eb6027 /UPDATING | |
parent | 3ad1ce46d3a031b45dc2ac871390fc412d670e9f (diff) | |
download | src-test2-3d5013337a7136f8ee099cb27f0c66160dd27c91.tar.gz src-test2-3d5013337a7136f8ee099cb27f0c66160dd27c91.zip |
tuntap(4): restrict scope of net.link.tap.user_open slightly
net.link.tap.user_open has historically allowed non-root users to do devfs
cloning and open /dev/tap* nodes based on permissions. Loosen this up to
make it only allow users to do devfs cloning -- we no longer check it in
tunopen.
This allows tap devices to be created that can actually be opened by a user,
rather than swiftly restricting them to root because the magic sysctl has
not been set.
The sysctl has not yet been completely deprecated, because more thought is
needed for how to handle the devfs cloning case. There is not an easy
suitable replacement for the sysctl there, and more care needs to be placed
in determining whether that's OK or not.
PR: 200185
Notes
Notes:
svn path=/head/; revision=353798
Diffstat (limited to 'UPDATING')
-rw-r--r-- | UPDATING | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -26,6 +26,15 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 13.x IS SLOW: disable the most expensive debugging functionality run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20191021: + The net.link.tap.user_open sysctl no longer prevents user opening of + already created /dev/tapNN devices. Access is still controlled by + node permissions, just like tun devices. The net.link.tap.user_open + sysctl is now used only to allow users to perform devfs cloning of + tap devices, and the subsequent open may not succeed if the user is not + in the appropriate group. This sysctl may be deprecated/removed + completely in the future. + 20191009: mips, powerpc, and sparc64 are no longer built as part of universe / tinderbox unless MAKE_OBSOLETE_GCC is defined. If |