Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

sep.c

Go to the documentation of this file.
00001 /*++ 00002 00003 Copyright (c) 1989 Microsoft Corporation 00004 00005 Module Name: 00006 00007 Sep.c 00008 00009 Abstract: 00010 00011 This Module implements the private security routine that are defined 00012 in sep.h 00013 00014 Author: 00015 00016 Gary Kimura (GaryKi) 9-Nov-1989 00017 00018 Environment: 00019 00020 Kernel Mode 00021 00022 Revision History: 00023 00024 --*/ 00025 00026 #include "sep.h" 00027 #include "seopaque.h" 00028 00029 #ifdef ALLOC_PRAGMA 00030 #pragma alloc_text(PAGE,SepCheckAcl) 00031 #endif 00032 00033 00034 00035 BOOLEAN 00036 SepCheckAcl ( 00037 IN PACL Acl, 00038 IN ULONG Length 00039 ) 00040 00041 /*++ 00042 00043 Routine Description: 00044 00045 This is a private routine that checks that an acl is well formed. 00046 00047 Arguments: 00048 00049 Acl - Supplies the acl to check 00050 00051 Length - Supplies the real size of the acl. The internal acl size 00052 must agree. 00053 00054 Return Value: 00055 00056 BOOLEAN - TRUE if the acl is well formed and FALSE otherwise 00057 00058 --*/ 00059 { 00060 if ((Length < sizeof(ACL)) || (Length != Acl->AclSize)) { 00061 return FALSE; 00062 } 00063 return RtlValidAcl( Acl ); 00064 }

Generated on Sat May 15 19:41:46 2004 for test by doxygen 1.3.7