diff options
author | Karel Zak | 2019-07-31 16:18:27 +0200 |
---|---|---|
committer | Karel Zak | 2019-07-31 16:31:10 +0200 |
commit | c4d6d1c54dcd0eff701236d396d88b1fc6251768 (patch) | |
tree | f69ae05887909c69fedb2fa847e5ef221e886374 /sys-utils/tunelp.8 | |
parent | Merge branch '2019wk29' of https://github.com/kerolasa/util-linux (diff) | |
download | kernel-qcow2-util-linux-c4d6d1c54dcd0eff701236d396d88b1fc6251768.tar.gz kernel-qcow2-util-linux-c4d6d1c54dcd0eff701236d396d88b1fc6251768.tar.xz kernel-qcow2-util-linux-c4d6d1c54dcd0eff701236d396d88b1fc6251768.zip |
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>
Diffstat (limited to 'sys-utils/tunelp.8')
0 files changed, 0 insertions, 0 deletions