]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: more robust mtab and utab update (CVE-2011-1676, CVE-2011-1677)
authorKarel Zak <kzak@redhat.com>
Wed, 13 Apr 2011 09:02:34 +0000 (11:02 +0200)
committerKarel Zak <kzak@redhat.com>
Tue, 19 Apr 2011 11:09:54 +0000 (13:09 +0200)
commit84ed14022e7d3d121bbcab60ebad11ed38d691b0
treef2ceafc51d395b954ed08baac6e0577179be769b
parent47b6a6143c78f158749d9c8056672518cd2eb61d
libmount: more robust mtab and utab update (CVE-2011-1676, CVE-2011-1677)

http://thread.gmane.org/gmane.comp.security.oss.general/4374

Changes:

 - always use temporary file

 - use fflush() for the temporary file

 - check fprintf() return value

Signed-off-by: Karel Zak <kzak@redhat.com>
shlibs/mount/src/tab_update.c