[Bug 1710634] [NEW] Incorrect directory for (lib)krb5 plugins

Andreas Hasenack andreas at canonical.com
Mon Aug 14 14:09:19 UTC 2017


Public bug reported:

The libkrb5-3 package built from the krb5 source hints at a (lib)krb5
plugin directory like this:
debian/libkrb5-3.dirs.in:usr/lib/${DEB_HOST_MULTIARCH}/krb5/plugins/krb5
debian/libkrb5-3.lintian-overrides:libkrb5-3:
package-contains-empty-directory */plugins/krb5/

The correct (lib)krb5 plugins directory, however, is:

/usr/lib/${DEB_HOST_MULTIARCH}/krb5/plugins/libkrb5

This can be verified in the krb5 source:
$ grep plugins/libkrb5 -r src
src/lib/krb5/os/locate_kdc.c:                                 LIBDIR
"/krb5/plugins/libkrb5",
src/lib/krb5/os/locate_kdc.c:static const char *objdirs[] = { LIBDIR
"/krb5/plugins/libkrb5", NULL };

As well as in the built library:
$ strings /usr/lib/x86_64-linux-gnu/libkrb5.so.3|grep plugins
/usr/lib/x86_64-linux-gnu/krb5/plugins/authdata
/usr/lib/x86_64-linux-gnu/krb5/plugins
plugins
/usr/lib/x86_64-linux-gnu/krb5/plugins/libkrb5

This also briefly introduced a bug in the ubuntu and debian sssd packages,
which assumed .../plugins/krb5 was the correct path:
https://bugs.launchpad.net/ubuntu/+source/sssd/+bug/1664566

In debian it was fixed in commit e6c4e91473e75f0ddc917a24f4d561fab9900939:
commit e6c4e91473e75f0ddc917a24f4d561fab9900939
Author: Timo Aaltonen <tjaalton at debian.org>
Date:   Fri Feb 17 11:22:12 2017 +0200

    rules, common.install: Fix sssd_krb5_locator_plugin install path. (LP:
#1664566)


There is no immediate impact to the libkrb5-3 package itself, since MIT
kerberos does not ship any libkrb5 plugin at the moment and it is an empty
directory. It should be fixed, though, to avoid inducing similar bugs in
the future.

** Affects: krb5 (Ubuntu)
     Importance: Low
         Status: New

** Affects: krb5 (Debian)
     Importance: Unknown
         Status: Unknown


** Tags: server-next

** Bug watch added: Debian Bug tracker #872140
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872140

** Also affects: krb5 (Debian) via
   https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=872140
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to krb5 in Ubuntu.
https://bugs.launchpad.net/bugs/1710634

Title:
  Incorrect directory for (lib)krb5 plugins

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/krb5/+bug/1710634/+subscriptions



More information about the Ubuntu-server-bugs mailing list