glibc/inet
Florian Weimer c88ffc239e NSS: Replace exported NSS lookup functions with stubs [BZ #21962]
Commit 384ca55174 from 2007 added this to
nss/XXX-lookup.c:

+#ifndef NO_COMPAT
+int
+internal_function attribute_compat_text_section
+DB_COMPAT_FCT (service_user **ni, const char *fct_name, void **fctp)
+{
+  return DB_LOOKUP_FCT (ni, fct_name, NULL, fctp);
+}
+#endif

That is, it adds a pseudo-compat function with an internal_function
attribute.  The function it was supposed to replace did not have the
attribute:

 extern int DB_LOOKUP_FCT (service_user **ni, const char *fct_name,
-			  void **fctp) internal_function;
+			  const char *fct2_name, void **fctp)
+  internal_function;

This changed the calling convention on i386 for the following
functions in the public ABI:

  __nss_passwd_lookup
  __nss_group_lookup
  __nss_hosts_lookup

This commit replaces the functions with always-failing stubs,
with true compat symbols.  Due to a happy accident, the calling
convention of the stub is identical for the internal_function
and non-internal_function case on i386.

In addition, this commit auto-generates the __nss_*_lookup2
function declarations as part of <nsswitch.h>.
2017-08-14 18:13:42 +02:00
..
arpa
netinet Fix network headers stdint.h namespace (bug 21455). 2017-05-04 20:36:42 +00:00
protocols
aliases.h
bug-if1.c
check_native.c
check_pf.c
deadline.c sunrpc: Improvements for UDP client timeout handling [BZ #20257] 2017-02-28 15:36:17 +01:00
ether_aton_r.c
ether_aton.c
ether_hton.c NSS: Replace exported NSS lookup functions with stubs [BZ #21962] 2017-08-14 18:13:42 +02:00
ether_line.c
ether_ntoa_r.c
ether_ntoa.c
ether_ntoh.c NSS: Replace exported NSS lookup functions with stubs [BZ #21962] 2017-08-14 18:13:42 +02:00
getaliasent_r.c
getaliasent.c
getaliasname_r.c
getaliasname.c
gethstbyad_r.c resolv: Call _res_hconf_init from __res_vinit 2017-06-27 09:26:46 +02:00
gethstbyad.c
gethstbynm2_r.c resolv: Call _res_hconf_init from __res_vinit 2017-06-27 09:26:46 +02:00
gethstbynm2.c
gethstbynm_r.c resolv: Call _res_hconf_init from __res_vinit 2017-06-27 09:26:46 +02:00
gethstbynm.c
gethstent_r.c
gethstent.c
getipv4sourcefilter.c
getnameinfo.c
getnetbyad_r.c
getnetbyad.c
getnetbynm_r.c
getnetbynm.c
getnetent_r.c
getnetent.c
getnetgrent_r.c NSS: Replace exported NSS lookup functions with stubs [BZ #21962] 2017-08-14 18:13:42 +02:00
getnetgrent.c
getproto_r.c
getproto.c
getprtent_r.c
getprtent.c
getprtname_r.c
getprtname.c
getservent_r.c
getservent.c
getsourcefilter.c
getsrvbynm_r.c
getsrvbynm.c
getsrvbypt_r.c
getsrvbypt.c
herrno-loc.c
herrno.c
htonl.c
htons.c
htontest.c Consistently use uintN_t not u_intN_t everywhere. 2017-08-07 19:55:34 +00:00
if_index.c
ifaddrs.c
ifaddrs.h
ifreq.c
in6_addr.c
inet6_opt.c
inet6_option.c
inet6_rth.c
inet6_scopeid_pton.c __inet6_scopeid_pton: Remove attribute_hidden, internal_function 2017-08-10 16:06:52 +02:00
inet_lnaof.c Consistently use uintN_t not u_intN_t everywhere. 2017-08-07 19:55:34 +00:00
inet_mkadr.c
inet_net.c Consistently use uintN_t not u_intN_t everywhere. 2017-08-07 19:55:34 +00:00
inet_netof.c Consistently use uintN_t not u_intN_t everywhere. 2017-08-07 19:55:34 +00:00
inet_ntoa.c
Makefile Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
net-internal.h __inet6_scopeid_pton: Remove attribute_hidden, internal_function 2017-08-10 16:06:52 +02:00
netgroup.h NSS: Do not use internal_function for functions with hidden aliases 2017-08-13 21:10:56 +02:00
rcmd.c Consistently use uintN_t not u_intN_t everywhere. 2017-08-07 19:55:34 +00:00
rexec.c rcmd/rexec: Fix typo in comment 2017-04-19 22:19:17 +02:00
ruserpass.c
setipv4sourcefilter.c
setsourcefilter.c
test_ifindex.c
test-hnto-types.c
test-ifaddrs.c
test-inet6_opt.c
tst-checks-posix.c Suppress internal declarations for most of the testsuite. 2017-05-11 19:27:59 -04:00
tst-checks.c
tst-deadline.c sunrpc: Improvements for UDP client timeout handling [BZ #20257] 2017-02-28 15:36:17 +01:00
tst-ether_aton.c
tst-ether_line.c
tst-gethnm.c
tst-getni1.c
tst-getni2.c
tst-inet6_rth.c
tst-inet6_scopeid_pton.c inet: __inet6_scopeid_pton should accept node-local addresses [BZ #21657] 2017-06-22 15:49:28 +02:00
tst-network.c
tst-ntoa.c
tst-sockaddr.c
Versions