Bug 219767
Summary: | Logrotate can not rotate files on non-selinux filesystem | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Göran Uddeborg <goeran> |
Component: | logrotate | Assignee: | Tomas Smetana <tsmetana> |
Status: | CLOSED ERRATA | QA Contact: | Jay Turner <jturner> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 4.4 | CC: | dwalsh, mmalik, sgrubb, srevivo |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | RHBA-2008-0703 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-07-24 19:52:10 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Göran Uddeborg
2006-12-15 10:00:15 UTC
What avc messages are you seeing? I don't get any avc messages. SELinux is not stopping logrotate from doing its job. Rather (as indicated in comment 0) logrotate aborts if getfilecon() fails. It should not do that, at least not when the reason is ENOTSUP. That seems reasonable to me. I have changed it: - if (selinux_enforce) { + if (selinux_enforce && errno != ENOTSUP) { return 1; } Could you test this package, please. http://people.redhat.com/pvrabec/rpms/logrotate-3.7.1-7.src.rpm It seems to rotate as expected. I still get an error message, which is somewhat confusing. I would suggest moving that too within an ENOTSUP test. At least it should not be a message on the MESS_ERROR level in the ENOTSUP case. But the rotation as such works correctly as far as I can tell! Oooops, I just see this bug is fixed in rhel5, fc6. This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2008-0703.html |