mirror of
https://github.com/reactos/reactos.git
synced 2024-06-29 01:12:06 +00:00
[NTOSKRNL]: Fix two NtAccess function prototypes (NO-OP, not implemented/used)
[NTOSKRNL]: Add missing call to ObValidateAccessMask (NO-OP, always returns TRUE). svn path=/trunk/; revision=57256
This commit is contained in:
parent
850822c853
commit
82a8352b60
|
@ -109,7 +109,7 @@ NtAccessCheckByType(
|
|||
IN ULONG ObjectTypeLength,
|
||||
IN PGENERIC_MAPPING GenericMapping,
|
||||
IN PPRIVILEGE_SET PrivilegeSet,
|
||||
IN ULONG PrivilegeSetLength,
|
||||
IN OUT PULONG PrivilegeSetLength,
|
||||
OUT PACCESS_MASK GrantedAccess,
|
||||
OUT PNTSTATUS AccessStatus
|
||||
);
|
||||
|
@ -125,7 +125,7 @@ NtAccessCheckByTypeResultList(
|
|||
IN ULONG ObjectTypeLength,
|
||||
IN PGENERIC_MAPPING GenericMapping,
|
||||
IN PPRIVILEGE_SET PrivilegeSet,
|
||||
IN ULONG PrivilegeSetLength,
|
||||
IN OUT PULONG PrivilegeSetLength,
|
||||
OUT PACCESS_MASK GrantedAccess,
|
||||
OUT PNTSTATUS AccessStatus
|
||||
);
|
||||
|
|
|
@ -140,7 +140,7 @@ NtCreateEvent(OUT PHANDLE EventHandle,
|
|||
(PVOID*)&Event);
|
||||
|
||||
/* Check for Success */
|
||||
if(NT_SUCCESS(Status))
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
/* Initalize the Event */
|
||||
KeInitializeEvent(Event,
|
||||
|
@ -156,7 +156,7 @@ NtCreateEvent(OUT PHANDLE EventHandle,
|
|||
&hEvent);
|
||||
|
||||
/* Check for success */
|
||||
if(NT_SUCCESS(Status))
|
||||
if (NT_SUCCESS(Status))
|
||||
{
|
||||
/* Enter SEH for return */
|
||||
_SEH2_TRY
|
||||
|
|
|
@ -2490,6 +2490,15 @@ ObOpenObjectByName(IN POBJECT_ATTRIBUTES ObjectAttributes,
|
|||
PassedAccessState->SecurityDescriptor =
|
||||
TempBuffer->ObjectCreateInfo.SecurityDescriptor;
|
||||
}
|
||||
|
||||
/* Validate the access mask */
|
||||
Status = ObpValidateAccessMask(PassedAccessState);
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
/* Cleanup after lookup */
|
||||
ObpReleaseLookupContext(&TempBuffer->LookupContext);
|
||||
goto Cleanup;
|
||||
}
|
||||
|
||||
/* Now do the lookup */
|
||||
Status = ObpLookupObjectName(TempBuffer->ObjectCreateInfo.RootDirectory,
|
||||
|
|
|
@ -1072,7 +1072,7 @@ NtAccessCheckByType(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|||
IN ULONG ObjectTypeLength,
|
||||
IN PGENERIC_MAPPING GenericMapping,
|
||||
IN PPRIVILEGE_SET PrivilegeSet,
|
||||
IN ULONG PrivilegeSetLength,
|
||||
IN OUT PULONG PrivilegeSetLength,
|
||||
OUT PACCESS_MASK GrantedAccess,
|
||||
OUT PNTSTATUS AccessStatus)
|
||||
{
|
||||
|
@ -1113,7 +1113,7 @@ NtAccessCheckByTypeResultList(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
|
|||
IN ULONG ObjectTypeLength,
|
||||
IN PGENERIC_MAPPING GenericMapping,
|
||||
IN PPRIVILEGE_SET PrivilegeSet,
|
||||
IN ULONG PrivilegeSetLength,
|
||||
IN OUT PULONG PrivilegeSetLength,
|
||||
OUT PACCESS_MASK GrantedAccess,
|
||||
OUT PNTSTATUS AccessStatus)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue