diff options
author | NeilBrown <neilb@suse.de> | 2011-05-23 08:19:57 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2011-05-23 08:25:00 -0400 |
commit | 7a802337bfc92d0b30fe94dbd0fa231990a26161 (patch) | |
tree | 0c03426f83fbe838991549dffb2d7d3a4fabc820 /support/export/hostname.c | |
parent | 56f537535190d034039570bafd9a0de71b79b8f1 (diff) | |
download | nfs-utils-7a802337bfc92d0b30fe94dbd0fa231990a26161.tar.gz nfs-utils-7a802337bfc92d0b30fe94dbd0fa231990a26161.tar.xz nfs-utils-7a802337bfc92d0b30fe94dbd0fa231990a26161.zip |
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 <neilb@suse.de>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/hostname.c')
0 files changed, 0 insertions, 0 deletions