DragonFly commits List (threaded) for 2009-04
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
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
commit ee89633d5330733056052c06919a5dd4c01347bc
Author: Matt Dillon <dillon@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@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
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]