Source code of Windows XP (NT5)
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.

93 lines
2.0 KiB

  1. # -
  2. # This test verifies that the COM IAccessControl implementation can handle a large number
  3. # of ACEs
  4. # -
  5. # Initialize a new ACL
  6. Exec InitNewACL
  7. # Add rayland\actest1-10 to the local access request list
  8. ToggleAccessPerm COM_RIGHTS_EXECUTE
  9. Set TrusteeName rayland\actest1
  10. AddTrustee AccessRequestList
  11. Set TrusteeName rayland\actest2
  12. AddTrustee AccessRequestList
  13. Set TrusteeName rayland\actest3
  14. AddTrustee AccessRequestList
  15. Set TrusteeName rayland\actest4
  16. AddTrustee AccessRequestList
  17. Set TrusteeName rayland\actest5
  18. AddTrustee AccessRequestList
  19. Set TrusteeName rayland\actest6
  20. AddTrustee AccessRequestList
  21. Set TrusteeName rayland\actest7
  22. AddTrustee AccessRequestList
  23. Set TrusteeName rayland\actest8
  24. AddTrustee AccessRequestList
  25. Set TrusteeName rayland\actest9
  26. AddTrustee AccessRequestList
  27. Set TrusteeName rayland\actest10
  28. AddTrustee AccessRequestList
  29. # Call GrantAccessRights
  30. Exec GrantAccessRights
  31. # Take a look at the ACL
  32. Exec GetExplicitAccessRights
  33. # Change Client's security context
  34. SwitchClientCtx
  35. actest10
  36. rayland
  37. # Call IsAccessPermitted
  38. Exec IsAccessPermitted
  39. # Call DenyAccessRights
  40. Exec DenyAccessRights
  41. # Take a look at the ACL
  42. Exec GetExplicitAccessRights
  43. # Call IsAccessPermitted
  44. Exec IsAccessPermitted
  45. # Revoke actest2,4,6,8,10
  46. Set TrusteeName rayland\actest2
  47. AddTrustee TrusteeList
  48. Set TrusteeName rayland\actest4
  49. AddTrustee TrusteeList
  50. Set TrusteeName rayland\actest6
  51. AddTrustee TrusteeList
  52. Set TrusteeName rayland\actest8
  53. AddTrustee TrusteeList
  54. Set TrusteeName rayland\actest10
  55. AddTrustee TrusteeList
  56. # Call RevokeExplictAccessRights
  57. Exec RevokeExplicitAccessRights
  58. # Take a look at the ACL
  59. Exec GetExplicitAccessRights
  60. # Call IsAccessPermitted
  61. Exec IsAccessPermitted
  62. # Destroy the old access request list
  63. Destroy AccessRequestList
  64. # Add rayland\actest10 to the access request list
  65. AddTrustee AccessRequestList
  66. # Call GrantAccessRights
  67. Exec GrantAccessrights
  68. # Take a look at the ACL
  69. Exec GetExplicitAccessRights
  70. # Call IsAccessPermitted
  71. Exec IsAccessPermitted
  72. # Kill the server
  73. Quit