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, Sep 6, 6:15 AM
Unknown Object (File)
Tue, Aug 26, 3:09 PM
Unknown Object (File)
Sat, Aug 23, 7:02 PM
Unknown Object (File)
Tue, Aug 19, 9:17 AM
Unknown Object (File)
Wed, Aug 13, 12:14 PM
Unknown Object (File)
Aug 7 2025, 5:57 PM
Unknown Object (File)
Aug 5 2025, 12:17 PM
Unknown Object (File)
Aug 5 2025, 8:41 AM
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.