Bug 668916

Summary: setfacl does not update ctime when changing file permission on ext3/4
Product: Red Hat Enterprise Linux 5 Reporter: Mark Wu <dwu>
Component: kernelAssignee: Eric Sandeen <esandeen>
Status: CLOSED DUPLICATE QA Contact: Petr Beňas <pbenas>
Severity: medium Docs Contact:
Priority: low    
Version: 5.5CC: ccui, eguan, pbenas, pstehlik, rwheeler
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 668915 Environment:
Last Closed: 2011-08-22 18:51:31 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: 668915, 709224, 969322, 969323    
Bug Blocks:    

Description Mark Wu 2011-01-12 02:38:40 UTC
+++ This bug was initially created as a clone of Bug #668915 +++

Description of problem:
setfacl does not update ctime when changing file permission on ext3/4

Version-Release number of selected component (if applicable):
RHEL6 GA (2.6.32-71.el6) 

How reproducible:
100%

Steps to Reproduce:
 # touch aaa
 # stat -c %Z aaa
 1275289822
 # setfacl -m  'u::x,g::x,o::x' aaa
 # stat -c %Z aaa
 1275289822                         <- unchanged
  
Actual results:
ctime is not updated after setfacl

Expected results:
ctime is updated after setfacl

Additional info:
These two issues are already fixed in upstream:

・ext3: update ctime when changing the file's permission by setfacl
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=30e2bab2d6e22188c6d36a09cdcffb4748d2dbe5

- This problem is solved on ext4 by the following patch file merged in kernel-2.6.36.
・ext4: update ctime when changing the file's permission by setfacl
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=c6ac12a6159c802ae8b757dd13563564e64333df

Comment 1 RHEL Program Management 2011-06-20 22:27:42 UTC
This request was evaluated by Red Hat Product Management for inclusion in Red Hat Enterprise Linux 5.7 and Red Hat does not plan to fix this issue the currently developed update.

Contact your manager or support representative in case you need to escalate this bug.

Comment 2 RHEL Program Management 2011-08-08 20:59:36 UTC
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.

Comment 5 Eric Sandeen 2011-08-22 18:51:31 UTC
[root@bear-05 tmp]# touch aaa
[root@bear-05 tmp]# stat -c %Z aaa
1314040539
[root@bear-05 tmp]# setfacl -m  'u::x,g::x,o::x' aaa
[root@bear-05 tmp]# stat -c %Z aaa
1314040547
[root@bear-05 ~]# uname -a
Linux bear-05 2.6.18-274.el5 #1 SMP Fri Jul 8 17:36:59 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux

This is fixed - dup of bug #709224

*** This bug has been marked as a duplicate of bug 709224 ***