first stab at impersonation
This commit is contained in:
parent
d136756272
commit
a0cda354be
4 changed files with 21 additions and 26 deletions
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
#define NFS41_MAX_COMPONENT_SIZE 64
|
||||
|
||||
#define UPCALL_BUF_SIZE 1024 + SECURITY_MAX_SID_SIZE
|
||||
#define UPCALL_BUF_SIZE 1024
|
||||
|
||||
/* MaximumComponentNameLength reported for FileFsAttributeInformation */
|
||||
#define NFS41_MAX_COMPONENT_LEN 64
|
||||
|
|
|
|||
|
|
@ -123,11 +123,8 @@ 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 SID=%s\n", upcall->xid,
|
||||
opcode2string(upcall->opcode), upcall->sid);
|
||||
dprintf(2, "xid=%d opcode=%s\n", upcall->xid, opcode2string(upcall->opcode));
|
||||
|
||||
if (upcall->opcode >= g_upcall_op_table_size) {
|
||||
status = ERROR_NOT_SUPPORTED;
|
||||
|
|
|
|||
|
|
@ -165,7 +165,6 @@ typedef struct __nfs41_upcall {
|
|||
uint32_t status;
|
||||
uint32_t last_error;
|
||||
upcall_args args;
|
||||
char sid[SECURITY_MAX_SID_SIZE];
|
||||
} nfs41_upcall;
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue