DragonFly-2.2.1.9.ge1b4b DragonFly_RELEASE_2_2 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
Sun May 3 23:51:53 PDT 2009


commit e1b4bb122782281c31efd0cdb5e41b94af947ccb
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/e1b4bb122782281c31efd0cdb5e41b94af947ccb


-- 
DragonFly BSD source repository





More information about the Commits mailing list