mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 17:44:45 +00:00
SeAccessCheck() returns TRUE on success
svn path=/trunk/; revision=11044
This commit is contained in:
parent
ee3726520d
commit
79c3ba475a
1 changed files with 11 additions and 11 deletions
|
@ -1,4 +1,4 @@
|
|||
/* $Id: semgr.c,v 1.45 2004/09/25 06:41:16 arty Exp $
|
||||
/* $Id: semgr.c,v 1.46 2004/09/25 08:49:06 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -852,16 +852,16 @@ NtAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|||
/* Lock subject context */
|
||||
SeLockSubjectContext(&SubjectSecurityContext);
|
||||
|
||||
if (!SeAccessCheck(SecurityDescriptor,
|
||||
&SubjectSecurityContext,
|
||||
TRUE,
|
||||
DesiredAccess,
|
||||
0,
|
||||
&PrivilegeSet,
|
||||
GenericMapping,
|
||||
PreviousMode,
|
||||
GrantedAccess,
|
||||
AccessStatus))
|
||||
if (SeAccessCheck(SecurityDescriptor,
|
||||
&SubjectSecurityContext,
|
||||
TRUE,
|
||||
DesiredAccess,
|
||||
0,
|
||||
&PrivilegeSet,
|
||||
GenericMapping,
|
||||
PreviousMode,
|
||||
GrantedAccess,
|
||||
AccessStatus))
|
||||
{
|
||||
Status = *AccessStatus;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue