Leaked source code of windows server 2003
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.

64 lines
909 B

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. ttseacc.c
  5. Abstract:
  6. Security component kernel-mode test.
  7. Test Object Security manipulation and accessibility from kernel mode.
  8. Author:
  9. Jim Kelly (JimK) 13-Apr-1990
  10. Revision History:
  11. --*/
  12. #define _TST_KERNEL_ //Kernel mode test
  13. #include <stdio.h>
  14. #include "sep.h"
  15. #include <zwapi.h>
  16. #include "tsevars.c" // Common test variables
  17. #include "ctseacc.c" // Common accessibility test routines
  18. BOOLEAN
  19. Test()
  20. {
  21. BOOLEAN Result = TRUE;
  22. DbgPrint("Se: Start Kernel Mode Security Test...\n");
  23. Result = TSeAcc();
  24. DbgPrint("Se: End Kernel Mode Security Test.\n");
  25. return Result;
  26. }
  27. int
  28. main(
  29. int argc,
  30. char *argv[]
  31. )
  32. {
  33. VOID KiSystemStartup();
  34. TestFunction = Test;
  35. KiSystemStartup();
  36. return( 0 );
  37. }