RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 683622 - [RFE] Preserve ACLs when rotating logs
Summary: [RFE] Preserve ACLs when rotating logs
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: logrotate
Version: 6.0
Hardware: All
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jan Kaluža
QA Contact: qe-baseos-daemons
URL:
Whiteboard:
Depends On:
Blocks: 607248 683626 756082
TreeView+ depends on / blocked
 
Reported: 2011-03-09 21:25 UTC by J.H.M. Dassen (Ray)
Modified: 2013-07-03 04:12 UTC (History)
5 users (show)

Fixed In Version: logrotate-3.7.8-14.el6
Doc Type: Enhancement
Doc Text:
ACL support for logrotate Previously, when certain groups were permitted to access all logs via ACLs, these ACLs were removed when the logs were rotated. In Red Hat Enterprise Linux 6.3, the logrotate utility supports ACLs, and logs that are rotated preserve any ACL settings.
Clone Of:
: 683626 (view as bug list)
Environment:
Last Closed: 2012-06-20 12:40:05 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
backported patch (4.36 KB, patch)
2012-01-13 07:55 UTC, Jan Kaluža
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 666677 0 low CLOSED Logrotate does not preserve ACL 2021-02-22 00:41:40 UTC
Red Hat Product Errata RHBA-2012:0786 0 normal SHIPPED_LIVE logrotate bug fix and enhancement update 2012-06-19 20:34:43 UTC

Internal Links: 666677

Description J.H.M. Dassen (Ray) 2011-03-09 21:25:26 UTC
2. What is the nature and description of the request?: When logrotate rotates the log files, it removes ACLs. This should not happen; ACLs should be preserved.
   3. Why does the customer need this?:  Customer would like to permit certain groups to access all logs. He could achieve this by using ACLs, but these ACLs get removed when logs are rotated.
   4. How would the customer like to achieve this? :preserve ACLs during rotation 
   5. For each functional requirement listed in question 4, specify how Red Hat and the customer can test to confirm the requirement is successfully implemented. :check ACL after log rotation
   6. Is there already an existing RFE upstream or in Red Hat bugzilla? Yes, https://bugzilla.redhat.com/show_bug.cgi?id=666677
    Upstream commit: https://fedorahosted.org/logrotate/changeset/299
   7. How quickly does this need resolved?, RHEL 6 minor
   8. Does this request meet the RHEL Inclusion criteria: yes
   9. List the affected packages: logrotate
  10. Would the customer be able to assist in testing this functionality if implemented? yes

Comment 3 RHEL Program Management 2011-07-05 23:59:22 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unfortunately unable to
address this request at this time. Red Hat invites you to
ask your support representative to propose this request, if
appropriate and relevant, in the next release of Red Hat
Enterprise Linux. If you would like it considered as an
exception in the current release, please ask your support
representative.

Comment 8 Jan Kaluža 2012-01-13 07:55:30 UTC
Created attachment 555007 [details]
backported patch

Backported patch with all the ACL related fixes from upstream repository.

Comment 12 Martin Prpič 2012-04-15 14:34:00 UTC
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1,8 +1,2 @@
-Cause:
+ACL support for logrotate
-    Customer would like to permit certain groups to access all logs. He could achieve this by using ACLs, but these ACLs get removed when logs are rotated.
+Previously, when certain groups were permitted to access all logs via ACLs, these ACLs were removed when the logs were rotated. In Red Hat Enterprise Linux 6.3, the logrotate utility supports ACLs, and logs that are rotated preserve any ACL settings.-Consequence:
-    Logrotate removed already set ACLs during the rotation.
-Change:
-    ACL support has been added to logrotate.
-Result:
-    Logrotate now supports ACLs and preserve them during the rotation.

Comment 19 errata-xmlrpc 2012-06-20 12:40:05 UTC
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, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0786.html


Note You need to log in before you can comment on or make changes to this bug.