rpc.idmap: Hide global symbols from libidmap plugins (bz 797332)

Signed-off-by: Steve Dickson <steved@redhat.com>
This commit is contained in:
Steve Dickson 2012-03-16 10:58:11 -04:00
parent e1db704824
commit 377715fddb
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,26 @@
commit 3ce15aeaa66a2f523c6fa92bfe818734bdedfcea
Author: Noah Friedman <friedman@splode.com>
Date: Thu Mar 15 12:52:50 2012 -0400
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>
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 );

View File

@ -30,6 +30,7 @@ Source52: nfs-server.postconfig
Patch001: nfs-utils-1.2.6-rc6.patch
Patch002: nfs-utils-1.2.4-mountshortcut.patch
Patch003: nfs-utils-1.2.5-libidmap-hide-syms.patch
Patch100: nfs-utils-1.2.1-statdpath-man.patch
Patch101: nfs-utils-1.2.1-exp-subtree-warn-off.patch
@ -88,6 +89,7 @@ This package also contains the mount.nfs and umount.nfs program.
%patch001 -p1
%patch002 -p1
%patch003 -p1
%patch100 -p1
%patch101 -p1
@ -277,8 +279,9 @@ fi
%attr(4755,root,root) /sbin/umount.nfs4
%changelog
* Thu Mar 15 2012 Steve Dickson <steved@redhat.com> 1.2.5-13
* Fri Mar 16 2012 Steve Dickson <steved@redhat.com> 1.2.5-13
- Make sure statd is start before NFS mounts (bz 786050)
- rpc.idmap: Hide global symbols from libidmap plugins (bz 797332)
* Wed Feb 08 2012 Harald Hoyer <harald@redhat.com> 1.2.5-12
- require kmod instead of modutils (bz 788571)