util-linux/libblkid
Karel Zak c4d6d1c54d libblkid: fix file descriptor leak in blkid_verify()
The function blkid_verify() uses private device file descriptor and
uses blkid_probe_set_device() to assign the descriptor to low-level
probing code. Unfortunately, close() in this case is not enough as the
prober can internally open whole-disk device too.

The library API has been extended so blkid_probe_set_device()
deallocates and close previously used prober for whole-disk. This new
functionality is used in blkid_verify() now.

Addresses: https://bugzilla.redhat.com/show_bug.cgi?id=1734545
Signed-off-by: Karel Zak <kzak@redhat.com>
2019-07-31 16:31:10 +02:00
..
docs misc: fix typos using codespell 2018-02-16 11:12:52 +01:00
samples build-sys: fix library order when linking 2017-06-01 03:16:48 +02:00
src libblkid: fix file descriptor leak in blkid_verify() 2019-07-31 16:31:10 +02:00
COPYING docs: use SPDX license names 2018-08-16 14:47:21 +02:00
Makemodule.am build-sys: remove redundant EXTRA_DIST files 2018-01-22 11:16:49 +01:00
blkid.pc.in libblkid: remove dependence on libuuid 2019-01-22 12:33:19 +01:00
libblkid.3 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00