linux-nfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Steve Dickson <SteveD@redhat.com>
To: "J. Bruce Fields" <bfields@fieldses.org>
Cc: Linux NFS Mailing list <linux-nfs@vger.kernel.org>
Subject: Re: [PATCH] rpc.gssd: Links directly with libgssapi_krb5 which not needed.
Date: Thu, 26 Jan 2012 16:50:15 -0500	[thread overview]
Message-ID: <4F21CA97.3020906@RedHat.com> (raw)
In-Reply-To: <20120126203006.GD31531@fieldses.org>



On 01/26/2012 03:30 PM, J. Bruce Fields wrote:
> On Thu, Jan 26, 2012 at 03:07:41PM -0500, Steve Dickson wrote:
>> rpc.gssd and rpc.svcgssd both link with the libgssapi_krb5 and
>> libgssglue libraries which is not needed since libgssglue
>> will dynamically load the gssapi interface defined in the
>> /etc/gssapi_mech.conf. Most likely the libgssapi_krb5 library.
>>
>> Signed-off-by: Steve Dickson <steved@redhat.com>
>> ---
>>  aclocal/kerberos5.m4 |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>>
>> diff --git a/aclocal/kerberos5.m4 b/aclocal/kerberos5.m4
>> index dfa5738..7574e2d 100644
>> --- a/aclocal/kerberos5.m4
>> +++ b/aclocal/kerberos5.m4
>> @@ -31,7 +31,7 @@ AC_DEFUN([AC_KERBEROS_V5],[
>>      fi
>>      if test "$K5CONFIG" != ""; then
>>        KRBCFLAGS=`$K5CONFIG --cflags`
>> -      KRBLIBS=`$K5CONFIG --libs gssapi`
>> +      KRBLIBS=`$K5CONFIG --libs`
> 
> OK, so that's gathering krb5-config output which gives us the list of -l
> switches we need to link in kerberos libraries, and removing the
> "gssapi" argument has the effect of removing "-lgssapi_krb5" from the
> output.
Right...

> 
> Ack, I guess, except: I'm a little confused why we want to link with
> *any* kerberos libraries, if rpc.gssd and rpc.svcgssd are supposed to
> themselves be completely mechanism-independent and are supposed to
> dlopen() aything they need for kerberos.
Well when they are not liked with any kerberos libs the following
are undefined http://fpaste.org/rWOR/

I'm treading on a thin ice here but I'm thinking those undefines are
not part the gssapi. Only the gssapi routines are dynamically linked.

Thanks for the time!

steved.

  reply	other threads:[~2012-01-26 21:50 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-26 20:07 [PATCH] rpc.gssd: Links directly with libgssapi_krb5 which not needed Steve Dickson
2012-01-26 20:30 ` J. Bruce Fields
2012-01-26 21:50   ` Steve Dickson [this message]
2012-01-26 22:38     ` Kevin Coffman
2012-03-22 19:21 ` Steve Dickson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F21CA97.3020906@RedHat.com \
    --to=steved@redhat.com \
    --cc=bfields@fieldses.org \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).