windows-query-afsid-20060420
authorJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 20 Apr 2006 18:19:22 +0000 (18:19 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Thu, 20 Apr 2006 18:19:22 +0000 (18:19 +0000)
commit01fe275679740d516b78a477c8976fbefe1217b4
tree0d85b3aee9ff4ef54595a70fa47cbe3f9c694b38
parent06250078ecef7e8cb65ab2bd3aec85608bcb39db
windows-query-afsid-20060420

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.

====================
This delta was composed from multiple commits as part of the CVS->Git migration.
The checkin message with each commit was inconsistent.
The following are the additional commit messages.
====================

Export functions missing from the UNIX version and the PR_ functions
required by the Windows Cache Manager.
src/WINNT/afsd/NTMakefile
src/WINNT/afsd/cm_ioctl.c
src/WINNT/afsd/cm_user.h
src/libafsauthent/afsauthent.def