Files
heimdal/kadmin
Taylor R Campbell e75e549252 Use AI_NUMERICSERV if block_dns, and use local getaddrinfo to audit.
This change has two parts:

1. Provide our own local implementation of numeric-only getaddrinfo
   in auditdns.c used to audit for DNS leaks, rather than deferring
   to dlsym(RTLD_NEXT, "getaddrinfo"), in terms of inet_pton.

   To keep review and implementation simple, this is limited to
   AI_NUMERICHOST _and_ AI_NUMERICSERV -- this requires that we
   arrange to pass AI_NUMERICSERV in callers too.

2. Wherever we implement block_dns, set AI_NUMERICSERV in addition to
   AI_NUMERICHOST as needed by the new auditdns.c getaddrinfo.

   (In principle this might also avoid other network leaks -- POSIX
   guarantees no name resolution service will be invoked, and gives
   NIS+ as an example.)

   One tiny semantic change to avoid tripping over the auditor:
   kadmin(8) now uses the string "749" rather than the string
   "kerberos-adm".  (Currently we don't audit kadmin(8) for DNS leaks
   but let's avoid leaving a rake to step on.)  Every other caller I
   found is already guaranteed to pass a numeric service rather than
   named service to getaddrinfo.

fix https://github.com/heimdal/heimdal/issues/1212
2024-01-09 16:06:32 -06:00
..
2022-01-14 14:59:02 -06:00
2023-01-04 01:36:03 -06:00
2008-09-13 08:53:55 +00:00
2023-01-04 01:36:03 -06:00
2022-03-23 23:39:34 -05:00
2023-06-23 13:44:13 -05:00
2023-01-04 01:36:03 -06:00
2022-01-15 18:54:57 +11:00
2023-01-04 01:36:03 -06:00
2010-03-16 12:52:58 -07:00
2017-04-29 13:55:24 -04:00
2010-03-16 12:52:58 -07:00
2023-01-04 01:36:03 -06:00
2022-01-14 14:59:02 -06:00
2010-03-16 12:52:58 -07:00
2023-06-23 13:44:13 -05:00