Hi,
raw_fd created by Android VpnService establish(), pass raw_fd to rust tun, When shutdown tun, drop fd libc::close invoked automatically, and Android 11 Crashed
A/libc: fdsan: attempted to close file descriptor 68, expected to be unowned, actually owned by ParcelFileDescriptor 0xa381657
it's not allowed close with no tag in Android 11 or higher.
add a option to close raw_fd manually: PR HERE
Hi, raw_fd created by Android VpnService
establish()
, pass raw_fd to rust tun, When shutdown tun, drop fdlibc::close
invoked automatically, and Android 11 CrashedA/libc: fdsan: attempted to close file descriptor 68, expected to be unowned, actually owned by ParcelFileDescriptor 0xa381657
it's not allowed
close
with no tag in Android 11 or higher. add a option to close raw_fd manually: PR HEREref: fdsan, android_fdsan_close_with_tag and close