2006-08-01 03:29:40

by Mike Frysinger

[permalink] [raw]
Subject: librpcsecgss conflicts with clnt libc symbols

the librpcsecgss duplicates some functions that the system libc normally
provides ... in this case:
clnt_create
clnt_pcreateerror
clnt_perrno
clnt_perror
clntraw_create
clnt_spcreateerror
clnt_sperrno
clnt_sperror
clnttcp_create
clntudp_bufcreate
clntudp_create

is there a reason for this ? i went through the ChangeLog and couldnt find
anything ... this stuff was added like between 0.7 and 0.8 but there doesnt
appear to be any mention of why ...
-mike


Attachments:
(No filename) (460.00 B)
(No filename) (827.00 B)
(No filename) (348.00 B)
(No filename) (140.00 B)
Download all attachments

2006-08-01 13:31:42

by Kevin Coffman

[permalink] [raw]
Subject: Re: librpcsecgss conflicts with clnt libc symbols

They were added in 0.8:

> Changes since librpcsecgss-0.7:

> -- From Olga Kornievskaia: add new prep_refresh function to clean up
> context information before trying to refresh a context
> -- From Olga Kornievskaia: add new function to access retry count
> for a context.
> -- Adds back clnt_ files which have the necessary calls needed for
> privacy.

The libc versions of the clnt*_call functions do not call the
AUTH_WRAP and AUTH_UNWRAP functions needed for privacy.


On 7/31/06, Mike Frysinger <[email protected]> wrote:
> the librpcsecgss duplicates some functions that the system libc normally
> provides ... in this case:
> clnt_create
> clnt_pcreateerror
> clnt_perrno
> clnt_perror
> clntraw_create
> clnt_spcreateerror
> clnt_sperrno
> clnt_sperror
> clnttcp_create
> clntudp_bufcreate
> clntudp_create
>
> is there a reason for this ? i went through the ChangeLog and couldnt find
> anything ... this stuff was added like between 0.7 and 0.8 but there doesnt
> appear to be any mention of why ...
> -mike
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> NFS maillist - [email protected]
> https://lists.sourceforge.net/lists/listinfo/nfs
>
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-08-01 14:32:37

by Mike Frysinger

[permalink] [raw]
Subject: Re: librpcsecgss conflicts with clnt libc symbols

On Tuesday 01 August 2006 09:31, Kevin Coffman wrote:
> They were added in 0.8:
> > Changes since librpcsecgss-0.7:
> >
> > -- From Olga Kornievskaia: add new prep_refresh function to clean up
> > context information before trying to refresh a context
> > -- From Olga Kornievskaia: add new function to access retry count
> > for a context.
> > -- Adds back clnt_ files which have the necessary calls needed for
> > privacy.
>
> The libc versions of the clnt*_call functions do not call the
> AUTH_WRAP and AUTH_UNWRAP functions needed for privacy.

ok, so that answers the first question (should they be there) ...

next is, should they be hidden for internal use only ? or all consumers of
librpcsecgss supposed to call the clnt_* funcs in there ?

the problem i'm trying to deal with is glibc may call the clnt funcs in some
auth scenarios and the versions in librpcsecgss are used instead of the ones
in libc (like when libnsl enters the picture)

i'll prob have to go through this user's bug report and try to reproduce it
myself ... last time i tried to use nfs4 it just totally didnt work ;)
-mike


Attachments:
(No filename) (1.09 kB)
(No filename) (827.00 B)
(No filename) (348.00 B)
(No filename) (140.00 B)
Download all attachments

2006-08-01 14:55:03

by Kevin Coffman

[permalink] [raw]
Subject: Re: librpcsecgss conflicts with clnt libc symbols

On 8/1/06, Mike Frysinger <[email protected]> wrote:
> On Tuesday 01 August 2006 09:31, Kevin Coffman wrote:
> > They were added in 0.8:
> > > Changes since librpcsecgss-0.7:
> > >
> > > -- From Olga Kornievskaia: add new prep_refresh function to clean up
> > > context information before trying to refresh a context
> > > -- From Olga Kornievskaia: add new function to access retry count
> > > for a context.
> > > -- Adds back clnt_ files which have the necessary calls needed for
> > > privacy.
> >
> > The libc versions of the clnt*_call functions do not call the
> > AUTH_WRAP and AUTH_UNWRAP functions needed for privacy.
>
> ok, so that answers the first question (should they be there) ...
>
> next is, should they be hidden for internal use only ? or all consumers of
> librpcsecgss supposed to call the clnt_* funcs in there ?
>
> the problem i'm trying to deal with is glibc may call the clnt funcs in some
> auth scenarios and the versions in librpcsecgss are used instead of the ones
> in libc (like when libnsl enters the picture)
>
> i'll prob have to go through this user's bug report and try to reproduce it
> myself ... last time i tried to use nfs4 it just totally didnt work ;)
> -mike

I've seen this with authenticated NIS. Can you point me at the bug report?

I'm working on a patch right now for librpcsecgss that hides our
versions of these functions by renaming them to rpcsecgss_*. It may
require some configure changes to the nfs-utils code to make it happy
with the new names...

K.C.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-08-01 23:02:39

by Mike Frysinger

[permalink] [raw]
Subject: Re: librpcsecgss conflicts with clnt libc symbols

On Tuesday 01 August 2006 10:55, Kevin Coffman wrote:
> I've seen this with authenticated NIS. Can you point me at the bug report?

http://bugs.gentoo.org/141959

> I'm working on a patch right now for librpcsecgss that hides our
> versions of these functions by renaming them to rpcsecgss_*. It may
> require some configure changes to the nfs-utils code to make it happy
> with the new names...

thanks !
-mike


Attachments:
(No filename) (414.00 B)
(No filename) (827.00 B)
(No filename) (348.00 B)
(No filename) (140.00 B)
Download all attachments