git: Kernel - fix access checks

Matthew Dillon dillon at crater.dragonflybsd.org
Wed Aug 26 10:45:09 PDT 2009


commit cb66845a55fd2b4f122f77e6dc648b44de8f4d74
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Aug 26 10:40:41 2009 -0700

    Kernel - fix access checks
    
    * VOP_ACCESS() is used for more then just access().  UFS and other
      filesystems (but not HAMMER) were calling it in the open/create/rename/
      unlink paths.  The uid/gid must be used in those cases, not the ruid/rgid.
    
      Add a VOP_EACCESS() macro which passes the appropriate flag to use the
      uid/gid instead of the ruid/rgid, and adjust the filesystems to use this
      macro.
    
    Reported-by: Stathis Kamperis <ekamperi at gmail.com>

Summary of changes:
 sys/sys/vfsops.h                     |    5 +++++
 sys/vfs/gnu/ext2fs/ext2_lookup.c     |    6 +++---
 sys/vfs/gnu/ext2fs/ext2_vfsops.c     |    4 ++--
 sys/vfs/gnu/ext2fs/ext2_vnops.c      |    4 ++--
 sys/vfs/hpfs/hpfs_vnops.c            |    6 +++---
 sys/vfs/isofs/cd9660/cd9660_vfsops.c |    2 +-
 sys/vfs/msdosfs/msdosfs_lookup.c     |    6 +++---
 sys/vfs/msdosfs/msdosfs_vfsops.c     |    4 ++--
 sys/vfs/msdosfs/msdosfs_vnops.c      |    4 ++--
 sys/vfs/nfs/nfs_serv.c               |    2 +-
 sys/vfs/nwfs/nwfs_ioctl.c            |    4 ++--
 sys/vfs/nwfs/nwfs_vnops.c            |    6 +++---
 sys/vfs/smbfs/smbfs_vnops.c          |   12 ++++++------
 sys/vfs/udf/udf_vfsops.c             |    2 +-
 sys/vfs/ufs/ffs_vfsops.c             |    4 ++--
 sys/vfs/ufs/ufs_lookup.c             |    6 +++---
 sys/vfs/ufs/ufs_vnops.c              |    4 ++--
 sys/vfs/union/union_subr.c           |    2 +-
 18 files changed, 44 insertions(+), 39 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/cb66845a55fd2b4f122f77e6dc648b44de8f4d74


-- 
DragonFly BSD source repository





More information about the Commits mailing list