mirror_zfs/lib/libzfs/os
Ryan Moeller def1a401f4 libzfs: zfs_userns: Don't leak the namespace fd
zfs_userns opens a file descriptor for the kernel to look up a
namespace, but does not close it.

Close the fd when we're done with it.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Allan Jude <allan@klarasystems.com>
Signed-off-by: Ryan Moeller <freqlabs@FreeBSD.org>
Closes #13554
2022-06-14 08:13:38 -07:00
..
freebsd libzfs: Define the defecto standard errbuf size 2022-06-09 15:24:24 -07:00
linux libzfs: zfs_userns: Don't leak the namespace fd 2022-06-14 08:13:38 -07:00