]> 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>
Wed, 13 Apr 2011 09:02:34 +0000 (11:02 +0200)
commit68af0bcc596ed5f074fafea55208b35cd945b072
treea501da070cfa966606e2cf912f63d60d0063985d
parent47a226b7e59ba8fc56603a20eec19ab69c9ccc4e
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