[nfs-utils/f17] rpc.idmap: Hide global symbols from libidmap plugins (bz 797332)

Steve Dickson steved at fedoraproject.org
Fri Mar 16 15:14:41 UTC 2012


commit 50bff16bf8fa65fa9725f8d832d288d414529da5
Author: Steve Dickson <steved at redhat.com>
Date:   Fri Mar 16 10:58:11 2012 -0400

    rpc.idmap: Hide global symbols from libidmap plugins (bz 797332)
    
    Signed-off-by: Steve Dickson <steved at redhat.com>

 nfs-utils-1.2.5-libidmap-hide-syms.patch |   26 ++++++++++++++++++++++++++
 nfs-utils.spec                           |    5 ++++-
 2 files changed, 30 insertions(+), 1 deletions(-)
---
diff --git a/nfs-utils-1.2.5-libidmap-hide-syms.patch b/nfs-utils-1.2.5-libidmap-hide-syms.patch
new file mode 100644
index 0000000..15a5272
--- /dev/null
+++ b/nfs-utils-1.2.5-libidmap-hide-syms.patch
@@ -0,0 +1,26 @@
+commit 3ce15aeaa66a2f523c6fa92bfe818734bdedfcea
+Author: Noah Friedman <friedman at 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 at 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 );
diff --git a/nfs-utils.spec b/nfs-utils.spec
index c83cb74..817fa77 100644
--- a/nfs-utils.spec
+++ b/nfs-utils.spec
@@ -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 at redhat.com> 1.2.5-13
+* Fri Mar 16 2012 Steve Dickson <steved at 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 at redhat.com> 1.2.5-12
 - require kmod instead of modutils (bz 788571)


More information about the scm-commits mailing list