summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Gallagher <sgallagh@redhat.com>2009-06-16 15:18:06 -0400
committerStephen Gallagher <sgallagh@redhat.com>2009-06-16 15:43:41 -0400
commit7d2f248b39aa78eaa7708ce64ad146d5a8bb934c (patch)
tree2cc260259163653587fe3d3120264df0e279feec
parentce3f45bad9d2ae97d72f653de13d43da569a8ab9 (diff)
downloadsssd-7d2f248b39aa78eaa7708ce64ad146d5a8bb934c.tar.gz
sssd-7d2f248b39aa78eaa7708ce64ad146d5a8bb934c.tar.bz2
sssd-7d2f248b39aa78eaa7708ce64ad146d5a8bb934c.zip
Control sss_client exports
-rw-r--r--sss_client/Makefile.am9
-rw-r--r--sss_client/sss_nss.exports (renamed from sss_client/exports.linux)0
-rw-r--r--sss_client/sss_pam.exports4
3 files changed, 11 insertions, 2 deletions
diff --git a/sss_client/Makefile.am b/sss_client/Makefile.am
index 90427b05..9a7ebab0 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/sss_nss.exports
index bcc6b10e..bcc6b10e 100644
--- a/sss_client/exports.linux
+++ b/sss_client/sss_nss.exports
diff --git a/sss_client/sss_pam.exports b/sss_client/sss_pam.exports
new file mode 100644
index 00000000..9afa106b
--- /dev/null
+++ b/sss_client/sss_pam.exports
@@ -0,0 +1,4 @@
+{
+ global:
+ *;
+};