adding SID to upcall

This commit is contained in:
Casey Bodley 2010-10-12 09:55:32 -04:00
parent 27d764710e
commit 86c16a7197
4 changed files with 32 additions and 5 deletions

View file

@ -39,7 +39,7 @@
#define NFS41_MAX_COMPONENT_SIZE 64
#define UPCALL_BUF_SIZE 1024
#define UPCALL_BUF_SIZE 1024 + SECURITY_MAX_SID_SIZE
/* MaximumComponentNameLength reported for FileFsAttributeInformation */
#define NFS41_MAX_COMPONENT_LEN 64

View file

@ -123,8 +123,11 @@ int upcall_parse(
if (status) goto out;
status = safe_read(&buffer, &length, &upcall->opcode, sizeof(uint32_t));
if (status) goto out;
status = get_name(&buffer, &length, upcall->sid);
if (status) goto out;
dprintf(2, "xid=%d opcode=%s\n", upcall->xid, opcode2string(upcall->opcode));
dprintf(2, "xid=%d opcode=%s SID=%s\n", upcall->xid,
opcode2string(upcall->opcode), upcall->sid);
if (upcall->opcode >= g_upcall_op_table_size) {
status = ERROR_NOT_SUPPORTED;

View file

@ -165,6 +165,7 @@ typedef struct __nfs41_upcall {
uint32_t status;
uint32_t last_error;
upcall_args args;
char sid[SECURITY_MAX_SID_SIZE];
} nfs41_upcall;