mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
s3-util_nttoken.c Also copy the rights_mask when copying a security_token
These are unused in source3/ code at the moment, but it would be unfortunate if that were to change, and this function not be updated. Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
This commit is contained in:
parent
170b345e0c
commit
7c6105ec27
@ -58,6 +58,7 @@ struct security_token *dup_nt_token(TALLOC_CTX *mem_ctx, const struct security_t
|
||||
}
|
||||
|
||||
token->privilege_mask = ptoken->privilege_mask;
|
||||
token->rights_mask = ptoken->rights_mask;
|
||||
|
||||
return token;
|
||||
}
|
||||
@ -107,6 +108,9 @@ NTSTATUS merge_nt_token(TALLOC_CTX *mem_ctx,
|
||||
token->privilege_mask |= token_1->privilege_mask;
|
||||
token->privilege_mask |= token_2->privilege_mask;
|
||||
|
||||
token->rights_mask |= token_1->rights_mask;
|
||||
token->rights_mask |= token_2->rights_mask;
|
||||
|
||||
*token_out = token;
|
||||
|
||||
return NT_STATUS_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user