You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
66 lines
968 B
66 lines
968 B
/*++
|
|
|
|
Copyright (c) 1989 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
Sep.c
|
|
|
|
Abstract:
|
|
|
|
This Module implements the private security routine that are defined
|
|
in sep.h
|
|
|
|
Author:
|
|
|
|
Gary Kimura (GaryKi) 9-Nov-1989
|
|
|
|
Environment:
|
|
|
|
Kernel Mode
|
|
|
|
Revision History:
|
|
|
|
--*/
|
|
|
|
#include "pch.h"
|
|
|
|
#pragma hdrstop
|
|
|
|
|
|
#ifdef ALLOC_PRAGMA
|
|
#pragma alloc_text(PAGE,SepCheckAcl)
|
|
#endif
|
|
|
|
|
|
|
|
BOOLEAN
|
|
SepCheckAcl (
|
|
IN PACL Acl,
|
|
IN ULONG Length
|
|
)
|
|
|
|
/*++
|
|
|
|
Routine Description:
|
|
|
|
This is a private routine that checks that an acl is well formed.
|
|
|
|
Arguments:
|
|
|
|
Acl - Supplies the acl to check
|
|
|
|
Length - Supplies the real size of the acl. The internal acl size
|
|
must agree.
|
|
|
|
Return Value:
|
|
|
|
BOOLEAN - TRUE if the acl is well formed and FALSE otherwise
|
|
|
|
--*/
|
|
{
|
|
if ((Length < sizeof(ACL)) || (Length != Acl->AclSize)) {
|
|
return FALSE;
|
|
}
|
|
return RtlValidAcl( Acl );
|
|
}
|