Page MenuHomeFreeBSD

openpam: Provide escape route for missing modules.
AbandonedPublic

Authored by des on May 7 2025, 3:51 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jun 24, 6:03 PM
Unknown Object (File)
Mon, Jun 23, 3:01 AM
Unknown Object (File)
Sun, Jun 22, 12:21 PM
Unknown Object (File)
Wed, Jun 18, 4:36 PM
Unknown Object (File)
Wed, Jun 18, 3:58 PM
Unknown Object (File)
Sun, Jun 15, 4:47 PM
Unknown Object (File)
Sun, Jun 15, 7:03 AM
Unknown Object (File)
Sat, Jun 14, 2:53 PM
Subscribers

Details

Reviewers
ivy
Summary

If the type field is prefixed with a hyphen, and the module is not
found on disk, ignore the entry instead of failing. This simplifies
management of systems which rely on third-party PAM modules.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63996
Build 60880: arc lint + arc unit

Event Timeline

des requested review of this revision.May 7 2025, 3:51 PM

to make it easier to review this change, could you please describe what the current behaviour is, and what the behaviour would be with your change?

you might also consider providing a test case for this change.

contrib/openpam/lib/libpam/openpam_configure.c
296
In D50240#1145814, @ivy wrote:

to make it easier to review this change, could you please describe what the current behaviour is, and what the behaviour would be with your change?

The current behavior is described in pam.conf(5). The change is described in the commit message.

contrib/openpam/lib/libpam/openpam_configure.c
296

no, this is third-party code which follows its own style.

des marked an inline comment as done.May 7 2025, 5:50 PM

It was committed upstream and imported in rG45538173c120.