summaryrefslogtreecommitdiffstats
path: root/support/export/export.c
diff options
context:
space:
mode:
authorBodo Stroesser <bstroesser@ts.fujitsu.com>2014-11-12 09:43:29 -0500
committerSteve Dickson <steved@redhat.com>2014-11-12 13:46:59 -0500
commite4569a0961ff9f059b9ae71327d291cf95399597 (patch)
tree294e024037fcf031dbb295b928787500a25c78d7 /support/export/export.c
parentaba23f36c4dbc22d0d6d4afe6896bc5bf7f1caa6 (diff)
downloadnfs-utils-e4569a0961ff9f059b9ae71327d291cf95399597.tar.gz
nfs-utils-e4569a0961ff9f059b9ae71327d291cf95399597.tar.xz
nfs-utils-e4569a0961ff9f059b9ae71327d291cf95399597.zip
rpc.mountd: set libtirpc nonblocking mode to avoid DOS
This patch is experimental. In works fine in that it removes the vulnerability against a DOS attack. rpc.mountd can be blocked by a bad client, that sends many RPC requests but never reads the responses. This might happen intentionally or caused by a wrong network config (MTU). The patch switches on the nonblocking mode of libtirpc. In that mode writes can block for a max of 2 seconds. Attackers are forced to send requests slower, as libtirpc will close a connection if it finds two requests to read at the same time. Reviewed-by: NeilBrown <neilb@suse.de> Signed-off-by: Bodo Stroesser <bstroesser@ts.fujitsu.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/export/export.c')
0 files changed, 0 insertions, 0 deletions