DragonFly commits List (threaded) for 2009-05
DragonFly BSD
DragonFly commits List (threaded) for 2009-05
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

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


From: Matthew Dillon <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Sun, 3 May 2009 23:50:16 -0700 (PDT)

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


-- 
DragonFly BSD source repository



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]