DragonFly-2.3.0.565.gee896 master sys/kern vfs_helper.c vfs_nlookup.c vfs_syscalls.c sys/sys vnode.h sys/vfs/gnu/ext2fs ext2_vnops.c sys/vfs/hpfs hpfs_vnops.c sys/vfs/msdosfs msdosfs_vnops.c sys/vfs/ntfs ntfs_vnops.c sys/vfs/nwfs nwfs_vnops.c sys/vfs/smbfs smbfs_vnops.c sys/vfs/udf udf_vnops.c sys/vfs/ufs ufs_vnops.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Wed Apr 1 21:04:15 PDT 2009
commit ee89633d5330733056052c06919a5dd4c01347bc
Author: Matt Dillon <dillon at test29.backplane.com>
Date: Thu Apr 2 03:56:49 2009 +0000
Fix permissions check for utimes() - owner can call even if u-w.
The owner of a file can call utimes() to modify the file's access and
modified times even if the file is not user-writable. Add a VOWN test
for VOP_ACCESS() / naccess() which performs this check.
As far as I know only kern_utimes() needs to use this particular type
of test.
This also fixes issues with cp -p and a few other programs.
Reported-by: Johannes Hofmann <johannes.hofmann at gmx.de>
Summary of changes:
sys/kern/vfs_helper.c | 2 ++
sys/kern/vfs_nlookup.c | 10 ++++++----
sys/kern/vfs_syscalls.c | 7 ++++++-
sys/sys/vnode.h | 3 ++-
sys/vfs/gnu/ext2fs/ext2_vnops.c | 2 ++
sys/vfs/hpfs/hpfs_vnops.c | 2 ++
sys/vfs/msdosfs/msdosfs_vnops.c | 2 ++
sys/vfs/ntfs/ntfs_vnops.c | 2 ++
sys/vfs/nwfs/nwfs_vnops.c | 2 ++
sys/vfs/smbfs/smbfs_vnops.c | 2 ++
sys/vfs/udf/udf_vnops.c | 2 ++
sys/vfs/ufs/ufs_vnops.c | 2 ++
12 files changed, 32 insertions(+), 6 deletions(-)
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/ee89633d5330733056052c06919a5dd4c01347bc
--
DragonFly BSD source repository
More information about the Commits
mailing list