Bug 2062512
| Summary: | Failure record file under /var/run/faillock removed after os reboot | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 8 | Reporter: | masanari iida <masanari.iida> | |
| Component: | pam | Assignee: | Iker Pedrosa <ipedrosa> | |
| Status: | CLOSED ERRATA | QA Contact: | Anuj Borah <aborah> | |
| Severity: | low | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 8.3 | CC: | aborah, chorn, ddas, pbrezina | |
| Target Milestone: | rc | Keywords: | Triaged | |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
|
| Hardware: | All | |||
| OS: | Linux | |||
| Whiteboard: | review | |||
| Fixed In Version: | pam-1.3.1-25.el8 | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | ||
| Clone Of: | ||||
| : | 2126632 (view as bug list) | Environment: | ||
| Last Closed: | 2023-05-16 09:02:48 UTC | Type: | Bug | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
| Embargoed: | ||||
| Bug Depends On: | ||||
| Bug Blocks: | 2126632 | |||
|
Description
masanari iida
2022-03-10 02:31:37 UTC
/var/run is symlinked to /run, which is a tmpfs that exists only in memory. Thus, when the system reboots the content of the folder is recreated and all the information is lost. As a possible workaround you can edit the content of /etc/security/faillock.conf to point to another directory instead of /var/run/faillock. Thanks for the reply. I understand why the failure record files are removed after reboot. As I wrote in description, I would like to see an information that failure record files are removed after reboot. If this information doesn't fit in man page, then I would like to discuss with Christian Horn about possibility to create a KB about this. In the mean time, I know that Red Hat is working on bz#1978029. If I want add a workaround (save failure information files on storage, instead of tmpfs) in the KB, then I need to write about current faillock limitation. Probably, I need to think about impact of SELinux, if I want to save the failure record files other than /var. kbase is possible, but having it in the man-pages would mean it also gets to upstream and other distros, so might be preferable. I'll include that in the man pages so that everybody is aware of the possible problem. Thank you for your decision. Every body will be happy. Masanari master:
pam_faillock: Clarify missing user faillock files after reboot - bcbf145ce925934214e48200c27c9ff736452549
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (pam bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2023:2954 |