kern/76818: ACL modifications touch file's mtime
Craig
craig at backfire.ca
Sat Jan 29 08:20:15 PST 2005
>Number: 76818
>Category: kern
>Synopsis: ACL modifications touch file's mtime
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sat Jan 29 16:20:14 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator: Craig
>Release: FreeBSD 5.3-RELEASE-p2 i386
>Organization:
The SCO Group, INC
>Environment:
System: FreeBSD burnout 5.3-RELEASE-p2 FreeBSD 5.3-RELEASE-p2 #1: Wed Jan 5 18:44:27 EST 2005 craig at burnout:/usr/obj/usr/src/sys/BURNOUT5 i386
>Description:
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.
>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.
>Fix:
Find erroneous code, patch, commit, MFC. Lather, rinse, repeat if desired.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-bugs
mailing list