]> git.decadent.org.uk Git - nfs-utils.git/commitdiff
Remove risk of nfs_addmntent corrupting mtab
authorNeilBrown <neilb@suse.de>
Mon, 23 May 2011 12:19:57 +0000 (08:19 -0400)
committerSteve Dickson <steved@redhat.com>
Mon, 23 May 2011 12:25:00 +0000 (08:25 -0400)
nfs_addmntent is used to append directly to /etc/mtab.
If the write partially fail, e.g. due to RLIMIT_FSIZE,
truncate back to original size and return an error.

See also https://bugzilla.redhat.com/show_bug.cgi?id=697975
(CVE-2011-1749) CVE-2011-1749 nfs-utils: mount.nfs fails to anticipate RLIMIT_FSIZE

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>

No differences found