Skip to content

Avoid DNS Reverse lookups when possible

Simo Sorce linux-nfs 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Fix segfault when using -R optionutils/gssd/gssd.c+1 -11 reply
2/3Avoid reverse resolution for server nameutils/gssd/gss_util.h utils/gssd/gssd.c utils/gssd/gssd_proc.c+39 -626 replies
3/3Document new -N optionutils/gssd/gssd.man+10 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] Avoid DNS Reverse lookups when possible

This new patchset obsoletes the patch sent earlier today. The first and third patch are obvious.

The second patch implement a new command line option -N that takes an on|off argument.

When 'on' is specified the RPC Server name as passed from the kernel to rpc.gssd is check to see if it really is an actual IP address, if it is the current code is executed (and reverse resolution happens), otherwise the name used at the mount option is used directly w/o any DNS resolution to construct the GSSAPI name.

Avoiding Reverse name resolution helps making the system work when PTR records cannot be properly set on a network (because the amdin does not control DNS for example) and also avoids a potential MITM attack (as explained early on in the original patch thread).

Simo Sorce (3):
Fix segfault when using -R option
Avoid reverse resolution for server name
Document new -N option

 utils/gssd/gss_util.h  |    2 ++
 utils/gssd/gssd.c      |   18 ++++++++++++++++--
 utils/gssd/gssd.man    |   11 ++++++++++-
 utils/gssd/gssd_proc.c |   25 +++++++++++++++++++++----
 4 files changed, 49 insertions(+), 7 deletions(-)