Page MenuHomeFreeBSD

pam_krb5: fix the GCC build
ClosedPublic

Authored by ivy on Jul 27 2025, 5:16 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Dec 6, 3:40 AM
Unknown Object (File)
Fri, Nov 28, 5:18 PM
Unknown Object (File)
Thu, Nov 27, 6:29 AM
Unknown Object (File)
Tue, Nov 25, 6:51 AM
Unknown Object (File)
Nov 1 2025, 2:41 AM
Unknown Object (File)
Oct 31 2025, 1:08 AM
Unknown Object (File)
Oct 26 2025, 1:00 PM
Unknown Object (File)
Oct 19 2025, 9:41 PM
Subscribers

Details

Summary

GCC doesn't recognise
-Wno-error=incompatible-pointer-types-discards-qualifiers.

Remove it and just fix the error instead: our pam_message does not have
a const msg member.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ivy requested review of this revision.Jul 27 2025, 5:16 PM

The real question is, why are we using this module instead of our own?

according to https://lists.freebsd.org/archives/dev-commits-src-all/2025-May/055576.html,

The reason for this import is to provide an MIT KRB5 compatible
pam_krb5 PAM module. The existing pam_krb5 in FreeBS only works
with Heimdal.
emaste added a subscriber: emaste.

We can sort out whether this code should exist separately; this change seems reasonable given that it does currently exist in the tree.

This revision is now accepted and ready to land.Jul 31 2025, 10:13 PM
This revision was automatically updated to reflect the committed changes.