]> git.ipfire.org Git - thirdparty/krb5.git/commit
Fix PKCS11 module path search
authorsashan <anedvedicky@gmail.com>
Fri, 17 Jun 2022 22:05:32 +0000 (00:05 +0200)
committerGreg Hudson <ghudson@mit.edu>
Fri, 4 Nov 2022 16:29:20 +0000 (12:29 -0400)
commit3401546ecd8abc0d51347c329c8db7933a620d0d
treed66a0463fcf4175f6aedf7c06704b7fe70d54a73
parent440c974aee745cd435d5cecc8976d7679ae1f7a6
Fix PKCS11 module path search

Commit c5c11839e02c7993eb78f2c94c75c10cf93f2195 switched the loading
of the PKCS#11 module from dlopen() to krb5int_open_plugin().  Because
krb5int_open_plugin() includes a stat() test, this change has the
unintended consequence of requiring the module name to be an absolute
or relative path to the library, not a filename within the dynamic
linker search path.

Within krb5int_open_plugin(), only stat() the filename on the
platforms which will use the file type.

[ghudson@mit.edu: adjusted conditionals to call stat() on Windows;
rewrote commit message]

(cherry picked from commit e134d9a6b6332bd085093e9075c949ece784fcd0)

ticket: 9067
version_fixed: 1.20.1
src/util/support/plugins.c