Bug 76818 - ACL modifications touch file's mtime
Summary: ACL modifications touch file's mtime
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 5.3-RELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Robert Watson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-29 16:20 UTC by Craig
Modified: 2009-02-06 12:42 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Craig 2005-01-29 16:20:14 UTC
The creation/removal/modification of a file's ACL data changes the
file's mtime, which is somewhat undesired behaviour. Commands
such as chmod and chown do _not_ change the mtime.

Fix: 

Find erroneous code, patch, commit, MFC. Lather, rinse, repeat if desired.
How-To-Repeat: Enable ACL technology, as described in the docs.
Then, run the following command sequences:

# touch me && ls -l me && sleep 300 && setfacl -m u:root:rwx me && ls -l me
-rw-r--r--  1 craig  admins  0 May 19 03:09 me
-rw-rwxr--+ 1 craig  admins  0 May 19 03:14 me*
# rm me
# touch me && ls -l me && sleep 300 && chmod 777 me && ls -l me
-rw-r--r--  1 craig  admins  0 May 19 03:28 me
-rwxrwxrwx  1 craig  admins  0 May 19 03:28 me*
#
I have been aware of this problem since FreeBSD ~5.2-current.
Comment 1 Pawel Jakub Dawidek freebsd_committer freebsd_triage 2005-02-12 10:52:58 UTC
Responsible Changed
From-To: freebsd-bugs->rwatson

Robert, can you look into this? 

http://www.freebsd.org/cgi/query-pr.cgi?pr=76818 

Adding to audit trail from misfiled PR kern/91679:

Date: Wed, 11 Jan 2006 15:59:53 +0000 (GMT)
Comment 2 Robert Watson freebsd_committer freebsd_triage 2009-02-01 18:55:40 UTC
State Changed
From-To: open->patched

This problem is now believed to be fixed in FreeBSD 8.x using the patch 
found in ports/125739.  I plan to MFC this in a few days, at which point 
I will update this PR as well.  The fix should ship in FreeBSD 7.2. 
Thanks for the report
Comment 3 Robert Watson freebsd_committer freebsd_triage 2009-02-06 12:42:09 UTC
State Changed
From-To: patched->closed

The fix has now been MFC'd to 7.x, and will appear in FreeBSD 7.2 later 
this year.  Thanks for the report!