Re: [PATCH 1/1] rpc.idmap: Hide global symbols from libidmap plugins

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 03/15/2012 12:57 PM, Steve Dickson wrote:
> From: Noah Friedman <friedman@xxxxxxxxxx>
> 
> 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@xxxxxxxxxx>
Committed... 

steved.
> ---
>  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 );
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux USB Development]     [Linux Media Development]     [Video for Linux]     [Linux NILFS]     [Linux Audio Users]     [Yosemite Info]     [Linux SCSI]

  Powered by Linux