mirror of
https://github.com/reactos/reactos.git
synced 2025-05-08 11:24:14 +00:00
[NTOS:SE]
- Fail in SeAccessCheck if the resulting access would be zero. CORE-10587 #resolve svn path=/trunk/; revision=70151
This commit is contained in:
parent
2c5b452770
commit
b73ac49f8c
1 changed files with 11 additions and 2 deletions
|
@ -425,8 +425,17 @@ SeAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||||
if (DesiredAccess == 0)
|
if (DesiredAccess == 0)
|
||||||
{
|
{
|
||||||
*GrantedAccess = PreviouslyGrantedAccess;
|
*GrantedAccess = PreviouslyGrantedAccess;
|
||||||
*AccessStatus = STATUS_SUCCESS;
|
if (PreviouslyGrantedAccess == 0)
|
||||||
ret = TRUE;
|
{
|
||||||
|
DPRINT1("Request for zero access to an object. Denying.\n");
|
||||||
|
*AccessStatus = STATUS_ACCESS_DENIED;
|
||||||
|
ret = FALSE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
*AccessStatus = STATUS_SUCCESS;
|
||||||
|
ret = TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue