From 7d2f248b39aa78eaa7708ce64ad146d5a8bb934c Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Tue, 16 Jun 2009 15:18:06 -0400 Subject: Control sss_client exports --- sss_client/Makefile.am | 9 ++++-- sss_client/exports.linux | 73 ---------------------------------------------- sss_client/sss_nss.exports | 73 ++++++++++++++++++++++++++++++++++++++++++++++ sss_client/sss_pam.exports | 4 +++ 4 files changed, 84 insertions(+), 75 deletions(-) delete mode 100644 sss_client/exports.linux create mode 100644 sss_client/sss_nss.exports create mode 100644 sss_client/sss_pam.exports diff --git a/sss_client/Makefile.am b/sss_client/Makefile.am index 90427b053..9a7ebab05 100644 --- a/sss_client/Makefile.am +++ b/sss_client/Makefile.am @@ -24,7 +24,8 @@ libnss_sss_la_SOURCES = \ sss_cli.h libnss_sss_la_LDFLAGS = \ -module \ - -avoid-version + -avoid-version \ + -Wl,--version-script,$(srcdir)/sss_nss.exports pam_sss_la_SOURCES = \ pam_sss.c \ @@ -38,7 +39,8 @@ pam_sss_la_LDFLAGS = \ -lpam \ -lpam_misc \ -module \ - -avoid-version + -avoid-version \ + -Wl,--version-script,$(srcdir)/sss_pam.exports noinst_PROGRAMS = pam_test_client pam_test_client_SOURCES = pam_test_client.c @@ -46,6 +48,9 @@ pam_test_client_LDFLAGS = -lpam -lpam_misc EXTRA_DIST = build/config.rpath +dist_noinst_DATA = \ + sss_nss.exports \ + sss_pam.exports install-data-hook: mv $(DESTDIR)/$(nsslibdir)/libnss_sss.so $(DESTDIR)/$(nsslibdir)/libnss_sss.so.2 diff --git a/sss_client/exports.linux b/sss_client/exports.linux deleted file mode 100644 index bcc6b10e1..000000000 --- a/sss_client/exports.linux +++ /dev/null @@ -1,73 +0,0 @@ -EXPORTED { - - # public functions - global: - - _nss_sss_getpwnam_r; - _nss_sss_getpwuid_r; - _nss_sss_setpwent; - _nss_sss_getpwent_r; - _nss_sss_endpwent; - - _nss_sss_getgrnam_r; - _nss_sss_getgrgid_r; - _nss_sss_setgrent; - _nss_sss_getgrent_r; - _nss_sss_endgrent; - _nss_sss_initgroups_dyn; - - #_nss_sss_getaliasbyname_r; - #_nss_sss_setaliasent; - #_nss_sss_getaliasent_r; - #_nss_sss_endaliasent; - - #_nss_sss_gethostton_r; - #_nss_sss_getntohost_r; - #_nss_sss_setetherent; - #_nss_sss_getetherent_r; - #_nss_sss_endetherent; - - #_nss_sss_gethostbyname_r; - #_nss_sss_gethostbyname2_r; - #_nss_sss_gethostbyaddr_r; - #_nss_sss_sethostent; - #_nss_sss_gethostent_r; - #_nss_sss_endhostent; - - #_nss_sss_setnetgrent; - #_nss_sss_getnetgrent_r; - #_nss_sss_endnetgrent; - - #_nss_sss_getnetbyname_r; - #_nss_sss_getnetbyaddr_r; - #_nss_sss_setnetent; - #_nss_sss_getnetent_r; - #_nss_sss_endnetent; - - #_nss_sss_getprotobyname_r; - #_nss_sss_getprotobynumber_r; - #_nss_sss_setprotoent; - #_nss_sss_getprotoent_r; - #_nss_sss_endprotoent; - - #_nss_sss_getrpcbyname_r; - #_nss_sss_getrpcbynumber_r; - #_nss_sss_setrpcent; - #_nss_sss_getrpcent_r; - #_nss_sss_endrpcent; - - #_nss_sss_getservbyname_r; - #_nss_sss_getservbyport_r; - #_nss_sss_setservent; - #_nss_sss_getservent_r; - #_nss_sss_endservent; - - #_nss_sss_getspnam_r; - #_nss_sss_setspent; - #_nss_sss_getspent_r; - #_nss_sss_endspent; - - # everything else is local - local: - *; -}; diff --git a/sss_client/sss_nss.exports b/sss_client/sss_nss.exports new file mode 100644 index 000000000..bcc6b10e1 --- /dev/null +++ b/sss_client/sss_nss.exports @@ -0,0 +1,73 @@ +EXPORTED { + + # public functions + global: + + _nss_sss_getpwnam_r; + _nss_sss_getpwuid_r; + _nss_sss_setpwent; + _nss_sss_getpwent_r; + _nss_sss_endpwent; + + _nss_sss_getgrnam_r; + _nss_sss_getgrgid_r; + _nss_sss_setgrent; + _nss_sss_getgrent_r; + _nss_sss_endgrent; + _nss_sss_initgroups_dyn; + + #_nss_sss_getaliasbyname_r; + #_nss_sss_setaliasent; + #_nss_sss_getaliasent_r; + #_nss_sss_endaliasent; + + #_nss_sss_gethostton_r; + #_nss_sss_getntohost_r; + #_nss_sss_setetherent; + #_nss_sss_getetherent_r; + #_nss_sss_endetherent; + + #_nss_sss_gethostbyname_r; + #_nss_sss_gethostbyname2_r; + #_nss_sss_gethostbyaddr_r; + #_nss_sss_sethostent; + #_nss_sss_gethostent_r; + #_nss_sss_endhostent; + + #_nss_sss_setnetgrent; + #_nss_sss_getnetgrent_r; + #_nss_sss_endnetgrent; + + #_nss_sss_getnetbyname_r; + #_nss_sss_getnetbyaddr_r; + #_nss_sss_setnetent; + #_nss_sss_getnetent_r; + #_nss_sss_endnetent; + + #_nss_sss_getprotobyname_r; + #_nss_sss_getprotobynumber_r; + #_nss_sss_setprotoent; + #_nss_sss_getprotoent_r; + #_nss_sss_endprotoent; + + #_nss_sss_getrpcbyname_r; + #_nss_sss_getrpcbynumber_r; + #_nss_sss_setrpcent; + #_nss_sss_getrpcent_r; + #_nss_sss_endrpcent; + + #_nss_sss_getservbyname_r; + #_nss_sss_getservbyport_r; + #_nss_sss_setservent; + #_nss_sss_getservent_r; + #_nss_sss_endservent; + + #_nss_sss_getspnam_r; + #_nss_sss_setspent; + #_nss_sss_getspent_r; + #_nss_sss_endspent; + + # everything else is local + local: + *; +}; diff --git a/sss_client/sss_pam.exports b/sss_client/sss_pam.exports new file mode 100644 index 000000000..9afa106be --- /dev/null +++ b/sss_client/sss_pam.exports @@ -0,0 +1,4 @@ +{ + global: + *; +}; -- cgit