zfs/lib/libzfs/os/linux
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
..
libzfs_mount_os.c Forbid b{copy,zero,cmp}(). Don't include <strings.h> for <string.h> 2022-03-15 15:13:48 -07:00
libzfs_pool_os.c libzfs: Define the defecto standard errbuf size 2022-06-09 15:24:24 -07:00
libzfs_util_os.c libzfs: zfs_userns: Don't leak the namespace fd 2022-06-14 08:13:38 -07:00