mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
- SeAccessCheck should assume failure if no SD was passed. Also fixes bugcheck on startup since processes don't currently have SDs.
svn path=/trunk/; revision=23235
This commit is contained in:
@@ -263,6 +263,7 @@ PspSetPrimaryToken(IN PEPROCESS Process,
|
||||
SubjectContext.ClientToken = NULL;
|
||||
|
||||
/* Do the access check */
|
||||
if (!SecurityDescriptor) DPRINT1("FIX PS SDs!!\n");
|
||||
Result = SeAccessCheck(SecurityDescriptor,
|
||||
&SubjectContext,
|
||||
FALSE,
|
||||
|
||||
@@ -871,6 +871,14 @@ SeAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
/* Check if we didn't get an SD */
|
||||
if (!SecurityDescriptor)
|
||||
{
|
||||
/* Automatic failure */
|
||||
*AccessStatus = STATUS_ACCESS_DENIED;
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
CurrentAccess = PreviouslyGrantedAccess;
|
||||
|
||||
if (SubjectContextLocked == FALSE)
|
||||
|
||||
Reference in New Issue
Block a user