Export only the symbol named auth_gssapi_module
authorJoe Orton <jorton@redhat.com>
Sat, 23 May 2015 12:04:43 +0000 (13:04 +0100)
committerSimo Sorce <simo@redhat.com>
Sun, 24 May 2015 21:49:23 +0000 (23:49 +0200)
The only entry point into the module DSO is the module structure itself;
use libtool's export-symbols linker trick to hide all the other global
symbols, which otherwise are potentially visible outside the module
itself (SEAL_* etc).

Reviewed-by: Simo Sorce <simo@redhat.com>
src/Makefile.am

index 01a1220..e2b0148 100644 (file)
@@ -12,7 +12,8 @@ mod_auth_gssapi_la_CFLAGS = \
 mod_auth_gssapi_la_LDFLAGS = \
     $(MAG_LIBS) \
     -avoid-version \
-    -module
+    -module \
+    -export-symbols-regex auth_gssapi_module
 
 install-exec-local:
        if test ! -d ${APXS_LIBEXECDIR}; then mkdir -p ${APXS_LIBEXECDIR}; fi