Bug 683622

Summary: [RFE] Preserve ACLs when rotating logs
Product: Red Hat Enterprise Linux 6 Reporter: J.H.M. Dassen (Ray) <rdassen>
Component: logrotateAssignee: Jan Kaluža <jkaluza>
Status: CLOSED ERRATA QA Contact: qe-baseos-daemons
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: asersen, avettath, azelinka, ovasik, rbinkhor
Target Milestone: rcKeywords: EasyFix, FutureFeature, Patch, Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
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.
Story Points: ---
Clone Of:
: 683626 (view as bug list) Environment:
Last Closed: 2012-06-20 12:40:05 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:
Bug Depends On:    
Bug Blocks: 607248, 683626, 756082    
Attachments:
Description Flags
backported patch none

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