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.

81 lines
2.0 KiB

  1. /*++
  2. Copyright (c) 1991-1996 Microsoft Corporation
  3. Module Name:
  4. brsec.h
  5. Abstract:
  6. Private header file to be included by Browser service modules that
  7. need to enforce security.
  8. Author:
  9. Cliff Van Dyke (CliffV) 22-Aug-1991
  10. Revision History:
  11. --*/
  12. //
  13. // brsecure.c will #include this file with BRSECURE_ALLOCATE defined.
  14. // That will cause each of these variables to be allocated.
  15. //
  16. #ifdef BRSECURE_ALLOCATE
  17. #define EXTERN
  18. #else
  19. #define EXTERN extern
  20. #endif
  21. //-------------------------------------------------------------------//
  22. // //
  23. // Object specific access masks //
  24. // //
  25. //-------------------------------------------------------------------//
  26. //
  27. // ConfigurationInfo specific access masks
  28. //
  29. #define BROWSER_CONTROL_ACCESS 0x0001
  30. #define BROWSER_QUERY_ACCESS 0x0002
  31. #define BROWSER_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED | \
  32. BROWSER_CONTROL_ACCESS | \
  33. BROWSER_QUERY_ACCESS )
  34. //
  35. // Object type names for audit alarm tracking
  36. //
  37. #define BROWSER_SERVICE_OBJECT TEXT("BrowserService")
  38. //
  39. // Security descriptors of Browser Service objects to control user accesses.
  40. //
  41. EXTERN PSECURITY_DESCRIPTOR BrGlobalBrowserSecurityDescriptor;
  42. //
  43. // Generic mapping for each Browser Service object object
  44. //
  45. EXTERN GENERIC_MAPPING BrGlobalBrowserInfoMapping
  46. #ifdef BRSECURE_ALLOCATE
  47. = {
  48. STANDARD_RIGHTS_READ, // Generic read
  49. STANDARD_RIGHTS_WRITE, // Generic write
  50. STANDARD_RIGHTS_EXECUTE, // Generic execute
  51. BROWSER_ALL_ACCESS // Generic all
  52. }
  53. #endif // BRSECURE_ALLOCATE
  54. ;
  55. NTSTATUS
  56. BrCreateBrowserObjects(
  57. VOID
  58. );
  59. #undef EXTERN