wintun/driver
Jason A. Donenfeld d8fe1419fb driver: automatically close long-lived handle
There's only one handle that's likely to be open in a long lived way:
the tun registration handle. So we can force that closed automatically
when the device is about to close, if it's been improperly left open.
Other handles will indeed hold up closing, but if those exist, they're a
sign of a larger bug elsewhere that should be addressed. On the other
hand, tun registration handles might legitimately be open during driver
upgrades. This also saves us the trouble of dereferencing a freed
FileObject as in the general case.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
2021-10-12 18:55:24 +00:00
..
driver.vcxproj driver: remove useless defines from resource 2021-07-30 10:40:27 +02:00
driver.vcxproj.filters driver: move to subfolder 2020-11-06 07:29:47 +01:00
undocumented.h driver: build security descriptor from sddl 2021-06-25 14:10:50 +02:00
wintun.c driver: automatically close long-lived handle 2021-10-12 18:55:24 +00:00
wintun.inf api: rewrite based on SwDevice 2021-10-12 18:54:20 +00:00
wintun.rc driver: mark as network driver rather than system driver 2021-08-07 15:06:20 +02:00