mirror_zfs/lib
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
..
libavl cppcheck: explicitly exclude kernel code from userspace checks 2022-05-10 10:20:55 -07:00
libefi autoconf: use include directives instead of recursing down lib 2022-05-10 10:18:11 -07:00
libicp Introduce BLAKE3 checksums as an OpenZFS feature 2022-06-08 15:55:57 -07:00
libnvpair Replace EXTRA_DIST with dist_noinst_DATA 2022-05-26 09:24:50 -07:00
libshare linux: libshare: smb: don't swallow net(1) errors 2022-05-18 15:56:38 -07:00
libspl Add Linux namespace delegation support 2022-06-10 09:51:46 -07:00
libtpool autoconf: use include directives instead of recursing down lib 2022-05-10 10:18:11 -07:00
libunicode cppcheck: explicitly exclude kernel code from userspace checks 2022-05-10 10:20:55 -07:00
libuutil Add Linux namespace delegation support 2022-06-10 09:51:46 -07:00
libzfs libzfs: zfs_userns: Don't leak the namespace fd 2022-06-14 08:13:38 -07:00
libzfs_core Add Linux namespace delegation support 2022-06-10 09:51:46 -07:00
libzfsbootenv Replace EXTRA_DIST with dist_noinst_DATA 2022-05-26 09:24:50 -07:00
libzpool Introduce BLAKE3 checksums as an OpenZFS feature 2022-06-08 15:55:57 -07:00
libzstd cppcheck: explicitly exclude kernel code from userspace checks 2022-05-10 10:20:55 -07:00
libzutil linux: libzutil: zfs_strip_path: only strip known prefixes 2022-05-16 15:56:57 -07:00
Makefile.am autoconf: use include directives instead of recursing down lib 2022-05-10 10:18:11 -07:00