From: "Michael Kerrisk (man-pages)" <mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
To: "Stéphane Aulery" <saulery-GANU6spQydw@public.gmane.org>,
773443-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org
Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org,
linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Bug#773443: [PATCH] host.conf.5: keywords and env. var. nospoof, spoofalert, spoof and RESOLV_SPOOF_CHECK were added to glibc 2.0.7 but never implemented
Date: Tue, 10 Mar 2015 07:20:51 +0100 [thread overview]
Message-ID: <54FE8D43.4070306@gmail.com> (raw)
In-Reply-To: <1425943648-17928-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
On 03/10/2015 12:27 AM, Stéphane Aulery wrote:
> Move descriptions to historical section and reorder it for clarity
Thanks, Stéphane.
Applied. But please make patch titles shorter (<72 chars) --move text
to the body of the commit message as needed.
Thanks,
Michael
> Debian Bug #773443 reported by ygrex-dSU6fMGyTqw@public.gmane.org
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=773443
> Signed-off-by: Stéphane Aulery <saulery-GANU6spQydw@public.gmane.org>
> ---
> man5/host.conf.5 | 125 ++++++++++++++++++++++++++++---------------------------
> 1 file changed, 63 insertions(+), 62 deletions(-)
>
> diff --git a/man5/host.conf.5 b/man5/host.conf.5
> index 9ff2ed3..08da435 100644
> --- a/man5/host.conf.5
> +++ b/man5/host.conf.5
> @@ -66,52 +66,6 @@ This is
> by default, as it may cause a substantial performance loss at sites
> with large hosts files.
> .TP
> -.I nospoof
> -Valid values are
> -.IR on " and " off .
> -If set to
> -.IR on ,
> -the resolv+ library will attempt to prevent hostname spoofing to
> -enhance the security of
> -.BR rlogin " and " rsh .
> -It works as follows: after performing a host address lookup, resolv+
> -will perform a hostname lookup for that address.
> -If the two hostnames
> -do not match, the query will fail.
> -The default value is
> -.IR off .
> -.TP
> -.I spoofalert
> -Valid values are
> -.IR on " and " off .
> -If this option is set to
> -.I on
> -and the
> -.I nospoof
> -option is also set, resolv+ will log a warning of the error via the
> -syslog facility.
> -The default value is
> -.IR off .
> -.TP
> -.I spoof
> -Valid values are
> -.IR off ", " nowarn " and " warn .
> -If this option is set to
> -.IR off ,
> -spoofed addresses are permitted and no warnings will be emitted
> -via the syslog facility.
> -If this option is set to
> -.IR warn ,
> -resolv+ will attempt to prevent hostname spoofing to
> -enhance the security and log a warning of the error via the syslog
> -facility.
> -If this option is set to
> -.IR nowarn ,
> -the resolv+ library will attempt to prevent hostname spoofing to
> -enhance the security but not emit warnings via the syslog facility.
> -Setting this option to anything else is equal to setting it to
> -.IR nowarn .
> -.TP
> .I reorder
> Valid values are
> .IR on " and " off .
> @@ -133,15 +87,6 @@ override the behavior which is configured in
> If set, this variable points to a file that should be read instead of
> .IR /etc/host.conf .
> .TP
> -.B RESOLV_SPOOF_CHECK
> -Overrides the
> -.IR nospoof ", " spoofalert " and " spoof
> -commands in the same way as the
> -.I spoof
> -command is parsed.
> -Valid values are
> -.IR off ", " nowarn " and " warn .
> -.TP
> .B RESOLV_MULTI
> Overrides the
> .I multi
> @@ -184,6 +129,10 @@ can take arguments like
> .IR off ", " nowarn " and " warn .
> Line comments can appear anywhere and not only at the beginning of a line.
> .SS Historical
> +The
> +.BR nsswitch.conf (5)
> +file is the modern way of controlling the order of host lookups.
> +.PP
> In glibc 2.4 and earlier, the following keyword is recognized:
> .TP
> .I order
> @@ -191,15 +140,67 @@ This keyword specifies how host lookups are to be performed.
> It should be followed by one or more lookup methods, separated by commas.
> Valid methods are
> .IR bind ", " hosts ", and " nis .
> -The
> +.TP
> .B RESOLV_SERV_ORDER
> -environment variable could be used to override the
> -.I order
> -command.
> +Overrides the order command.
> .PP
> -The
> -.BR nsswitch.conf (5)
> -file is the modern way of controlling the order of host lookups.
> +Since glibc 2.0.7, the following keywords and environment variable have
> +been recognized but never implemented:
> +.TP
> +.I nospoof
> +Valid values are
> +.IR on " and " off .
> +If set to
> +.IR on ,
> +the resolv+ library will attempt to prevent hostname spoofing to
> +enhance the security of
> +.BR rlogin " and " rsh .
> +It works as follows: after performing a host address lookup, resolv+
> +will perform a hostname lookup for that address.
> +If the two hostnames
> +do not match, the query will fail.
> +The default value is
> +.IR off .
> +.TP
> +.I spoofalert
> +Valid values are
> +.IR on " and " off .
> +If this option is set to
> +.I on
> +and the
> +.I nospoof
> +option is also set, resolv+ will log a warning of the error via the
> +syslog facility.
> +The default value is
> +.IR off .
> +.TP
> +.I spoof
> +Valid values are
> +.IR off ", " nowarn " and " warn .
> +If this option is set to
> +.IR off ,
> +spoofed addresses are permitted and no warnings will be emitted
> +via the syslog facility.
> +If this option is set to
> +.IR warn ,
> +resolv+ will attempt to prevent hostname spoofing to
> +enhance the security and log a warning of the error via the syslog
> +facility.
> +If this option is set to
> +.IR nowarn ,
> +the resolv+ library will attempt to prevent hostname spoofing to
> +enhance the security but not emit warnings via the syslog facility.
> +Setting this option to anything else is equal to setting it to
> +.IR nowarn .
> +.TP
> +.B RESOLV_SPOOF_CHECK
> +Overrides the
> +.IR nospoof ", " spoofalert " and " spoof
> +commands in the same way as the
> +.I spoof
> +command is parsed.
> +Valid values are
> +.IR off ", " nowarn " and " warn .
> .SH SEE ALSO
> .BR gethostbyname (3),
> .BR hosts (5),
>
--
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Linux/UNIX System Programming Training: http://man7.org/training/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-03-10 6:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-08 13:05 host.conf.5: spoof deprecated ? Stéphane Aulery
[not found] ` <20150308130510.GA3004-GANU6spQydw@public.gmane.org>
2015-03-09 7:22 ` Bug#773443: " Michael Kerrisk (man-pages)
[not found] ` <54FD4A19.2030203-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-03-09 7:59 ` Stéphane Aulery
[not found] ` <20150309075913.GA1341-GANU6spQydw@public.gmane.org>
2015-03-09 9:03 ` Michael Kerrisk (man-pages)
[not found] ` <54FD61CD.2060900-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-03-09 23:26 ` Stéphane Aulery
[not found] ` <20150309232628.GA17006-GANU6spQydw@public.gmane.org>
2015-03-09 23:27 ` [PATCH] host.conf.5: keywords and env. var. nospoof, spoofalert, spoof and RESOLV_SPOOF_CHECK were added to glibc 2.0.7 but never implemented Stéphane Aulery
[not found] ` <1425943648-17928-1-git-send-email-saulery-GANU6spQydw@public.gmane.org>
2015-03-10 6:20 ` Michael Kerrisk (man-pages) [this message]
[not found] ` <54FE8D43.4070306-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-03-10 7:28 ` Bug#773443: " Stéphane Aulery
2015-03-10 6:00 ` Bug#773443: host.conf.5: spoof deprecated ? Michael Kerrisk (man-pages)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54FE8D43.4070306@gmail.com \
--to=mtk.manpages-re5jqeeqqe8avxtiumwx3w@public.gmane.org \
--cc=773443-61a8vm9lEZVf4u+23C9RwQ@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=saulery-GANU6spQydw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.