]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: check perms before RXAFS_GetVolumeStatus
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 22 Jun 2012 04:25:26 +0000 (00:25 -0400)
committerJeffrey Altman <jaltman@your-file-system.com>
Tue, 3 Jul 2012 16:28:06 +0000 (09:28 -0700)
commit05ac74528b30d36c195ff8f4df343fa72082a213
treeea7d11f05102b8b826d44959b0a0f8decddc9138
parent4785361388d21c46dd30332d89bb201522ee1a6c
Windows: check perms before RXAFS_GetVolumeStatus

Instead of calling RXAFS_GetVolumeStatus naked, perform a read
permission check using RXAFS_FetchStatus first.  This permits EACCES
caching to prevent unnecessary requests.

Regardless of which FileId is queried, always use the root vnode
FileId for the permission check.  The file server performs its
permission check using the root vnode.

Change-Id: I3260bf0061beed5d95aae1d40e25d17be1811271
Reviewed-on: http://gerrit.openafs.org/7641
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
Tested-by: Jeffrey Altman <jaltman@your-file-system.com>
src/WINNT/afsd/cm_ioctl.c
src/WINNT/afsd/cm_vnodeops.c
src/WINNT/afsd/cm_volume.c
src/WINNT/afsrdr/user/RDRFunction.c