summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNoah Friedman <friedman@splode.com>2012-03-15 12:52:50 -0400
committerSteve Dickson <steved@redhat.com>2012-03-16 09:52:47 -0400
commit3ce15aeaa66a2f523c6fa92bfe818734bdedfcea (patch)
tree81c660ec124eddf1054950d3642f4aa3235b4d61
parentc72bf12bd81bc782cbcfada5cabd3200c042ae25 (diff)
downloadnfs-utils-3ce15aeaa66a2f523c6fa92bfe818734bdedfcea.tar.gz
nfs-utils-3ce15aeaa66a2f523c6fa92bfe818734bdedfcea.tar.xz
nfs-utils-3ce15aeaa66a2f523c6fa92bfe818734bdedfcea.zip
rpc.idmap: Hide global symbols from libidmap plugins
This patch limits the visibility of the symbols in the nfs-utils conffile.c so that they are only visible to programs linked directly to it. This forces the objects dynamically loaded via libnfsidmap to use the functions defined in that shared library instead. Signed-off-by: Steve Dickson <steved@redhat.com>
-rw-r--r--support/nfs/conffile.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c
index 2f1e235..5015e94 100644
--- a/support/nfs/conffile.c
+++ b/support/nfs/conffile.c
@@ -49,6 +49,8 @@
#include "conffile.h"
#include "xlog.h"
+#pragma GCC visibility push(hidden)
+
static void conf_load_defaults(void);
static int conf_set(int , char *, char *, char *,
char *, int , int );