Skip to contentSkip to conversation

rpc.gssd: Links directly with libgssapi_krb5 which not needed.

PATCH In review Steve Dickson 3 participants 5 messages Jan 26, 2012 – Mar 22, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rpc.gssd: Links directly with libgssapi_krb5 which not needed.

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.

---
 aclocal/kerberos5.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
aclocal/kerberos5.m4 +1 -1
index dfa5738..7574e2d 100644
@@ -31,7 +31,7 @@ AC_DEFUN([AC_KERBEROS_V5],[
     fi
     if test "$K5CONFIG" != ""; then
       KRBCFLAGS=`$K5CONFIG --cflags`
-      KRBLIBS=`$K5CONFIG --libs gssapi`
+      KRBLIBS=`$K5CONFIG --libs`
       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
       AC_DEFINE_UNQUOTED(KRB5_VERSION, $K5VERS, [Define this as the Kerberos version number])
       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
Signature · 1 line
1.7.7.5
#1 lore raw
Quoted 15 lines · Steve Dickson

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.

---
 aclocal/kerberos5.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
aclocal/kerberos5.m4 +0 -0
index dfa5738..7574e2d 100644

aclocal/kerberos5.m4 AC_DEFUN([AC_KERBEROS_V5],[ · line 34

Quoted 5 lines
aclocal/kerberos5.m4 +1 -1
@@ -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.

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.

--b.

Quoted 10 lines
aclocal/kerberos5.m4 +0 -0
       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
       AC_DEFINE_UNQUOTED(KRB5_VERSION, $K5VERS, [Define this as the Kerberos version number])
       if test -f $dir/include/gssapi/gssapi_krb5.h -a \
Signature · 6 lines
1.7.7.5

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#2 lore raw
Quoted 11 lines · J. Bruce Fields
Quoted 10 lines · Steve Dickson

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.

---
 aclocal/kerberos5.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 15 lines

aclocal/kerberos5.m4 AC_DEFUN([AC_KERBEROS_V5],[ · line 34

Quoted 10 lines
aclocal/kerberos5.m4 +1 -1
index dfa5738..7574e2d 100644
@@ -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...

Quoted 5 lines

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.

#3 lore raw
Quoted 36 lines · Steve Dickson
Quoted 11 lines · J. Bruce Fields
Quoted 10 lines · Steve Dickson

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.

---
 aclocal/kerberos5.m4 |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
Quoted 15 lines
Quoted 10 lines
aclocal/kerberos5.m4 +0 -0
index dfa5738..7574e2d 100644
@@ -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...

Quoted 5 lines

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.

Quoted 7 lines

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!

Most of those functions are dealing with finding credentials caches and keytabs and examining them. (Trying to pick the right credential cache to use, and trying to find the right keytab entry to use...) As Steve said, those are strictly Kerberos functions, not GSSAPI.

K.C.

#4 lore raw
In reply to Steve Dickson
Quoted 6 lines · Steve Dickson

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.

Committed...

Quoted 17 lines
---
 aclocal/kerberos5.m4 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
aclocal/kerberos5.m4 +1 -1
index dfa5738..7574e2d 100644
@@ -31,7 +31,7 @@ AC_DEFUN([AC_KERBEROS_V5],[
     fi
     if test "$K5CONFIG" != ""; then
       KRBCFLAGS=`$K5CONFIG --cflags`
-      KRBLIBS=`$K5CONFIG --libs gssapi`
+      KRBLIBS=`$K5CONFIG --libs`
       K5VERS=`$K5CONFIG --version | head -n 1 | awk '{split($(4),v,"."); if (v@<:@"3"@:>@ == "") v@<:@"3"@:>@ = "0"; print v@<:@"1"@:>@v@<:@"2"@:>@v@<:@"3"@:>@ }'`
       AC_DEFINE_UNQUOTED(KRB5_VERSION, $K5VERS, [Define this as the Kerberos version number])
       if test -f $dir/include/gssapi/gssapi_krb5.h -a \