diff options
author | deraadt <> | 2015-12-16 16:32:30 +0000 |
---|---|---|
committer | deraadt <> | 2015-12-16 16:32:30 +0000 |
commit | 65015706aa88135b196fdb07536e39d260511c45 (patch) | |
tree | aa88ef26871b6a3768c600c6d6362ae5ca66f931 | |
parent | fafb823cae6fc42ab41957474dc933bd3a103115 (diff) | |
download | openbsd-65015706aa88135b196fdb07536e39d260511c45.tar.gz openbsd-65015706aa88135b196fdb07536e39d260511c45.tar.bz2 openbsd-65015706aa88135b196fdb07536e39d260511c45.zip |
Remove support for HOSTALIASES from the resolver. This "open and parse
any file indicated by an environment variable" feature inside the
resolver is incompatible with what pledge "dns" is trying to be. It is
a misguided "feature" added way back in history which almost noone uses,
but everyone has to assume the risk from.
ok eric florian kettenis
-rw-r--r-- | src/lib/libc/net/gethostbyname.3 | 10 | ||||
-rw-r--r-- | src/lib/libc/net/resolver.3 | 11 |
2 files changed, 6 insertions, 15 deletions
diff --git a/src/lib/libc/net/gethostbyname.3 b/src/lib/libc/net/gethostbyname.3 index 304f314099..f8c4891c68 100644 --- a/src/lib/libc/net/gethostbyname.3 +++ b/src/lib/libc/net/gethostbyname.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: gethostbyname.3,v 1.27 2014/08/23 07:25:54 jmc Exp $ | 1 | .\" $OpenBSD: gethostbyname.3,v 1.28 2015/12/16 16:32:30 deraadt Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1983, 1987, 1991, 1993 | 3 | .\" Copyright (c) 1983, 1987, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -27,7 +27,7 @@ | |||
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
29 | .\" | 29 | .\" |
30 | .Dd $Mdocdate: August 23 2014 $ | 30 | .Dd $Mdocdate: December 16 2015 $ |
31 | .Dt GETHOSTBYNAME 3 | 31 | .Dt GETHOSTBYNAME 3 |
32 | .Os | 32 | .Os |
33 | .Sh NAME | 33 | .Sh NAME |
@@ -171,12 +171,6 @@ The contents of the error message is the same as that returned by | |||
171 | with argument | 171 | with argument |
172 | .Fa h_errno . | 172 | .Fa h_errno . |
173 | .Sh ENVIRONMENT | 173 | .Sh ENVIRONMENT |
174 | .Bl -tag -width HOSTALIASES | ||
175 | .It HOSTALIASES | ||
176 | A file containing local host aliases. | ||
177 | See | ||
178 | .Xr hostname 7 | ||
179 | for more information. | ||
180 | .It RES_OPTIONS | 174 | .It RES_OPTIONS |
181 | A list of options to override the resolver's internal defaults. | 175 | A list of options to override the resolver's internal defaults. |
182 | See | 176 | See |
diff --git a/src/lib/libc/net/resolver.3 b/src/lib/libc/net/resolver.3 index 7dae1c7e65..db7400df9b 100644 --- a/src/lib/libc/net/resolver.3 +++ b/src/lib/libc/net/resolver.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: resolver.3,v 1.31 2015/11/10 23:48:18 jmc Exp $ | 1 | .\" $OpenBSD: resolver.3,v 1.32 2015/12/16 16:32:30 deraadt Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 1985, 1991, 1993 | 3 | .\" Copyright (c) 1985, 1991, 1993 |
4 | .\" The Regents of the University of California. All rights reserved. | 4 | .\" The Regents of the University of California. All rights reserved. |
@@ -27,7 +27,7 @@ | |||
27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 27 | .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
28 | .\" SUCH DAMAGE. | 28 | .\" SUCH DAMAGE. |
29 | .\" | 29 | .\" |
30 | .Dd $Mdocdate: November 10 2015 $ | 30 | .Dd $Mdocdate: December 16 2015 $ |
31 | .Dt RES_INIT 3 | 31 | .Dt RES_INIT 3 |
32 | .Os | 32 | .Os |
33 | .Sh NAME | 33 | .Sh NAME |
@@ -171,12 +171,9 @@ to be equal to the server's address. | |||
171 | Do not check if the query section of the reply packet | 171 | Do not check if the query section of the reply packet |
172 | is equal to that of the query packet. | 172 | is equal to that of the query packet. |
173 | .It Dv RES_NOALIASES | 173 | .It Dv RES_NOALIASES |
174 | Turn off the | 174 | (In the past, this turned off the legacy |
175 | .Ev HOSTALIASES | 175 | .Ev HOSTALIASES |
176 | feature. | 176 | feature). |
177 | See | ||
178 | .Xr hostname 7 | ||
179 | for more information. | ||
180 | .It Dv RES_USE_INET6 | 177 | .It Dv RES_USE_INET6 |
181 | Enables support for IPv6-only applications. | 178 | Enables support for IPv6-only applications. |
182 | This causes IPv4 addresses to be returned as an IPv4 mapped address. | 179 | This causes IPv4 addresses to be returned as an IPv4 mapped address. |