https://bugs.openldap.org/show_bug.cgi?id=10172
Issue ID: 10172 Summary: check for writability of directory of logfile during startup Product: OpenLDAP Version: 2.6.7 Hardware: All OS: All Status: UNCONFIRMED Keywords: needs_review Severity: enhancement Priority: --- Component: slapd Assignee: bugs@openldap.org Reporter: hyc@openldap.org Target Milestone: ---
Even if the logfile itself is writable, if the enclosing directory is not writable then slapd won't be able to perform logfile rotation. Check for this when the logfile is being configured. This will prevent starting up with a bad config, but we still can't do anything about it if the directory's perms are changed while slapd is already running. Logging an error message in that situation would likely fill all disk space with that error message.
https://bugs.openldap.org/show_bug.cgi?id=10172
Howard Chu hyc@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |IN_PROGRESS Ever confirmed|0 |1
--- Comment #1 from Howard Chu hyc@openldap.org --- https://git.openldap.org/openldap/openldap/-/merge_requests/684
https://bugs.openldap.org/show_bug.cgi?id=10172
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords|needs_review | Target Milestone|--- |2.6.8 Assignee|bugs@openldap.org |hyc@openldap.org
https://bugs.openldap.org/show_bug.cgi?id=10172
--- Comment #2 from Quanah Gibson-Mount quanah@openldap.org --- head:
• 6ecc28b7 by Howard Chu at 2024-02-22T17:40:35+00:00 ITS#10172 logging: report errors when rotation fails
RE26:
• 513da653 by Howard Chu at 2024-03-26T16:41:34+00:00 ITS#10172 logging: report errors when rotation fails
https://bugs.openldap.org/show_bug.cgi?id=10172
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|IN_PROGRESS |RESOLVED Resolution|--- |FIXED
https://bugs.openldap.org/show_bug.cgi?id=10172
Quanah Gibson-Mount quanah@openldap.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |VERIFIED