OpenAFS CVS Commit: openafs/src/WINNT/afsd by jaltman
cvs@GRAND.CENTRAL.ORG
cvs@GRAND.CENTRAL.ORG
Thu, 20 Apr 2006 13:18:42 EDT
Update of /cvs/openafs/src/WINNT/afsd
In directory GRAND.CENTRAL.ORG:/home/jaltman/openafs/cvs-1-3/src/WINNT/afsd
Modified Files:
NTMakefile cm_ioctl.c cm_user.h
Log Message:
DELTA windows-query-afsid-20060420
AUTHOR jaltman@secure-endpoints.com
In order to properly handle the local allocation of locks
the cache manager must enforce the locking rules associated
with PRSFS_WRITE and PRSFS_INSERT and PRSFS_LOCK. Insert
affects "new files" which in AFS are defined as any file that
is owned by the user. Therefore, we must know the afsid of the
user so that it can be compared to owner of the file.
This commit includes a query using PR_SNameToId where the name
is the name specified by the entity setting the token. There
does not currently exist a Protection Service RPC to return the
AFSID of the entity that the rx connection was authenticated as.
Such a function will have to be added in order to make this
functionality secure.
--- DELTA config follows ---
windows-query-afsid-20060420 openafs/src/WINNT/afsd/NTMakefile 1.45 1.46
windows-query-afsid-20060420 openafs/src/WINNT/afsd/cm_ioctl.c 1.71 1.72
windows-query-afsid-20060420 openafs/src/WINNT/afsd/cm_user.h 1.6 1.7