each mount has unique client_owner

add the netroot name to the hash for generating its client_owner

Signed-off-by: Casey Bodley <cbodley@citi.umich.edu>
This commit is contained in:
Casey Bodley 2010-10-26 14:35:30 -04:00
parent f61bd10560
commit 4930e7caca
4 changed files with 13 additions and 2 deletions

View file

@ -379,6 +379,7 @@ out:
}
int nfs41_client_owner(
IN const char *name,
OUT client_owner4 *owner)
{
HCRYPTPROV context;
@ -405,6 +406,12 @@ int nfs41_client_owner(
goto out_context;
}
if (!CryptHashData(hash, (const BYTE*)name, (DWORD)strlen(name), 0)) {
status = GetLastError();
eprintf("CryptHashData() failed with %d\n", status);
goto out_hash;
}
/* add the mac address from each applicable adapter to the hash */
status = hash_mac_addrs(hash);
if (status) {