Return-Path: linux-nfs-owner@vger.kernel.org Received: from mx1.redhat.com ([209.132.183.28]:62355 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1161055Ab2COQ55 (ORCPT ); Thu, 15 Mar 2012 12:57:57 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q2FGvvJO027992 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 15 Mar 2012 12:57:57 -0400 Received: from bighat.boston.devel.redhat.com (bighat.boston.devel.redhat.com [10.16.60.55]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q2FGvug0004016 for ; Thu, 15 Mar 2012 12:57:57 -0400 From: Steve Dickson To: Linux NFS Mailing list Subject: [PATCH 1/1] rpc.idmap: Hide global symbols from libidmap plugins Date: Thu, 15 Mar 2012 12:57:22 -0400 Message-Id: <1331830642-18908-1-git-send-email-steved@redhat.com> Sender: linux-nfs-owner@vger.kernel.org List-ID: From: Noah Friedman 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 --- support/nfs/conffile.c | 2 ++ 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 ); -- 1.7.7.6