Re: Permissions for shared libraries in Kerberos

Robbie Harwood <[email protected]> Wed, 18 Nov 2020 15:38:35 -0500
Newsgroups gmane.comp.encryption.kerberos.devel
Message-ID <[email protected]>
Robbie Harwood <[email protected]> writes:

> Ken Hornstein <[email protected]> writes:
>
>> I have been working on packaging up our Kerberos code into a RPM (to
>> upgrade our ancient dusty old Kerberos RPMs), and I had been running
>> into a problem where shared library dependencies were not being
>> processed properly.  More specifically, the executables were saying,
>> "hey, I depend on libkrb5.so(FOO)", but the RPM wouldn't ever figure
>> out the shared library PROVIDED "libkrb5.so(FOO)", so you'd get a
>> bunch of unresolved dependencies.  We had this same problem with our
>> ancient old dusty Kerberos RPMs, but I wanted to fix this correctly
>> for once.
>>
>> Fast forward a distressingly large number of late-night hours later
>> digging into the guts of RPM, the reason for this is simple.  The
>> automatic dependency scripts only extract symbols from shared
>> libraries if they have the execute bit set, and MIT Kerberos installs
>> all of the shared libraries as mode 644.
>
> Fedora seems to take care of this transparently - I don't have any
> special logic to mark them executable.

Gah, spoke too soon.  I patch shlib.conf to make install them
executable.

Thanks,
--Robbie

_______________________________________________
krbdev mailing list             [email protected]
https://mailman.mit.edu/mailman/listinfo/krbdev
signature.asc (application/pgp-signature, 832 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEA5qc6hnelQjDaHWqJTL5F2qVpEIFAl+1hksACgkQJTL5F2qV
pEJeXQ/+KFGlsafq12jDmRgDY0IocyTk6SVY3eLQFQdCGHaY/g6iwRMpLTeY7iB6
dqBrvRka/RZkd0KUkjrjc7AXIaZmgHE/ronzQQD2zlevTejQbic1YfIUjGd2qV3j
zZrJJQ14zPsaygxuMRcXkVquVF2me34AxiNBLr1GTVDkzdik93EeukR63D2OazTp
nDkWaDrrNZjOFoLM5M9cTdqXOOQZ5rgT4AlubRoK6XYIbu5WACRBPeuaJMMZYOsP
E9wMIla7yzvaQr9b+JUpzJzNuFM8dtfceeRjFmXDlSOqm1GA2uV30L+vVpAp6RnP
9ejHgFbRz6a/3Km93pigmHdepK6EOcEgre2D5AY62DC00d1ED1gPCRXz7nmCSQWW
voWO01d3aZGE6ral5A6wX8fN5CFi4TFMGSscm8h6QU0Z1ArgUHP6WIqfQLSD+36D
xTgE5a0XM0pfAgx9Qp7w42m9TpZfzE8vorVc/D19gl593vRVMaGM6T6uf5WQsCvH
XVwNJ2bovuhjEHFI7uE1znnTmrbxkb+E1ijwyPBv3iyTWP8O3tgsEK0Aoq4Gigag
Pore8Vcx/TaGop9Z6hdPu23bAWjDF6bV0JUik1Gcj/rViHMadqq2prAQ79CfH3CW
ZeE5j+0gOEshLwQZGoWtj3ybcdu8B8wxiXsGPYiKHVfN1NVsBf4=
=ggqH
-----END PGP SIGNATURE-----