Re: Permissions for shared libraries in Kerberos

Robbie Harwood <[email protected]> Wed, 18 Nov 2020 15:37:42 -0500
Newsgroups gmane.comp.encryption.kerberos.devel
Message-ID <[email protected]>
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.

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+1hhYACgkQJTL5F2qV
pEInPQ//QkAKm5TBSFsukVOqFjL+fVpx0h9uL54UFEs6cbBbCrp3BJZGyFlqgg84
Rpb8Tjn/IQfFCKsLdMVn27rOnIGpoPNsTAs3dLzmuY+Jk4hTYxITFc51jIshpnxT
/sZdpk0pR3PeTezqmnlSxRaPLWd1dV7ESDZFG/Sh8bzCTu8XR+iIKYIzB1fQwASv
Z+RpNuPWRXQxhpPujmAxSFYrS2aoxVgIPIfGKrJQV8OgE1SXadEAwIfqnJei0MxC
VtBYF4Z4c++UHDqyUfz8h953JO8F/Y6QLehKQ6etDq6nMgx/cXEmVDzulCP6CewS
yTacFPs6bYZ3RnEo4iI/MWm3MpYJsN+9YYuRqYn+8MljdoMFBCSCgBhTEj2GPvs2
2SSnQaXiEqkeBa25KrHsXTC6RTfal3nkgSuux1XujFdT9IBLJ/55TMsyUc0TMGhn
P1CWZP5+/d7gyMoZNYUFZLpSn6XKSSAzNfrlWVyoBElF2YVxZ1zgW5n+qySF3Fo1
kSegG84i/9QtnePJGHJtSJV6ih7GsA/MslLBYBL3lvw2ZfPGTEwc1IAatcvLuXoa
+Jg/3OZvV5D+3CIifsJNcNs9UlKE8im/b/l2lzjPyPwc+0rB23MHepN/HZRfGQZg
FuhnmNqH2Kyq8koJb8YBNwvXvDLJ5rN62DMFPJLldOXW8jClTcg=
=GWLU
-----END PGP SIGNATURE-----