From: NeilBrown Date: Mon, 23 May 2011 12:19:57 +0000 (-0400) Subject: Remove risk of nfs_addmntent corrupting mtab X-Git-Tag: nfs-utils-1-2-4-rc9~11 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;ds=sidebyside;h=7a802337bfc92d0b30fe94dbd0fa231990a26161;hp=7a802337bfc92d0b30fe94dbd0fa231990a26161;p=nfs-utils.git Remove risk of nfs_addmntent corrupting mtab 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 Signed-off-by: Steve Dickson ---