Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to set pam_u2f arguments in configuration file #325

Closed
wants to merge 6 commits into from

Conversation

dacav
Copy link
Contributor

@dacav dacav commented Dec 5, 2024

dacav added 6 commits December 5, 2024 13:17
Having it into another module will prevent the code from being messy
later.

The parsing procedure is taken verbatim: no semantic change, no
behavioural change.
The debug_file option silently fails if the file does not already exist.
Create file if it does not exist.
Report error if any.
The configuration file defines the default behaviour of pam_u2f.
Individual module invocations under /etc/pam.d can override
settings.

The file-system location of the config file is by default
$sysconfdir/security/pam_u2f.conf, where $sysconfdir is supplied at
build time.

A new module configuration, "config=", allows to override it at runtime.
Only absolute paths are accepted.
- Factorize re-opening of debug file according to the configuration

- Ensure that the debug file is replaced only if opening the new one is
  successful.
@dacav dacav requested a review from LDVG December 5, 2024 12:35
@dacav
Copy link
Contributor Author

dacav commented Dec 5, 2024

Will follow up shortly with fixes for the checks ;-)

@dacav dacav marked this pull request as draft December 6, 2024 10:18
@dacav
Copy link
Contributor Author

dacav commented Dec 13, 2024

Closing PR in favor of next attempt.

@dacav dacav closed this Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant