diff options
author | Karel Zak | 2011-04-13 10:49:26 +0200 |
---|---|---|
committer | Karel Zak | 2011-04-13 10:49:26 +0200 |
commit | 47a226b7e59ba8fc56603a20eec19ab69c9ccc4e (patch) | |
tree | b2af36ba4966b5e9ae666738f9a7127e8af9558d /mount/mount.c | |
parent | umount: block signals when umounting and updating mtab (CVE-2011-1676, CVE-20... (diff) | |
download | kernel-qcow2-util-linux-47a226b7e59ba8fc56603a20eec19ab69c9ccc4e.tar.gz kernel-qcow2-util-linux-47a226b7e59ba8fc56603a20eec19ab69c9ccc4e.tar.xz kernel-qcow2-util-linux-47a226b7e59ba8fc56603a20eec19ab69c9ccc4e.zip |
mount: use lock from mnt_update_table()
The mnt_update_table() is able to create a mtab lock now.
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'mount/mount.c')
-rw-r--r-- | mount/mount.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/mount/mount.c b/mount/mount.c index aa59304bc..b786368f9 100644 --- a/mount/mount.c +++ b/mount/mount.c @@ -1403,9 +1403,7 @@ static void update_mtab_entry(int flags) create_mtab (); } - lc = init_libmount_lock( mnt_update_get_filename(mtab_update) ); - mnt_update_table(mtab_update, lc); - init_libmount_lock(NULL); + mnt_update_table(mtab_update, NULL); } mnt_free_update(mtab_update); |