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.

97 lines
2.8 KiB

  1. /*++ BUILD Version: 0001 // Increment this if a change has global effects
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. seposix.h
  5. Abstract:
  6. This file contains security related definitions that are private to
  7. subsystems, such as Posix Id to Sid mappings
  8. Author:
  9. Scott Birrell (ScottBi) April 13, 1993
  10. Environment:
  11. User Mode - Win32
  12. Revision History:
  13. --*/
  14. #ifndef _SEPOSIX_
  15. #define _SEPOSIX_
  16. //
  17. // Posix Id definitions
  18. //
  19. // IMPORTANT NOTE:
  20. //
  21. // The Posix Id's for well known Sids and accounts in the local machine's
  22. // BUILTIN in and Accounts have values not exceeding 0x3ffff. This is
  23. // to allow storage of these Posix Ids in cpio archive file format.
  24. // This format restricts the size of the values to fit within 6 octal
  25. // digits, making 0x3ffff the highest possible value supportable.
  26. //
  27. //
  28. // Posix Id's for universal well known Sids
  29. //
  30. #define SE_NULL_POSIX_ID ((ULONG) 0x00010000)
  31. #define SE_WORLD_POSIX_ID ((ULONG) 0x00010100)
  32. #define SE_LOCAL_POSIX_ID ((ULONG) 0x00010200)
  33. #define SE_CREATOR_OWNER_POSIX_ID ((ULONG) 0x00010300)
  34. #define SE_CREATOR_GROUP_POSIX_ID ((ULONG) 0x00010301)
  35. #define SE_NON_UNIQUE_POSIX_ID ((ULONG) 0x00010400)
  36. //
  37. // Posix Id's for Nt well known Sids
  38. //
  39. #define SE_AUTHORITY_POSIX_ID ((ULONG) 0x00010500)
  40. #define SE_DIALUP_POSIX_ID ((ULONG) 0x00010501)
  41. #define SE_NETWORK_POSIX_ID ((ULONG) 0x00010502)
  42. #define SE_BATCH_POSIX_ID ((ULONG) 0x00010503)
  43. #define SE_INTERACTIVE_POSIX_ID ((ULONG) 0x00010504)
  44. #define SE_DEFAULT_LOGON_POSIX_ID ((ULONG) 0x00010505)
  45. #define SE_SERVICE_POSIX_ID ((ULONG) 0x00010506)
  46. //
  47. // Posix Offsets for Built In Domain, Account Domain and Primary Domain
  48. //
  49. // NOTE: The Posix Id of an account in one of these domains is given
  50. // by the formula:
  51. //
  52. // Posix Id = Domain Posix Offset + Relative Id
  53. //
  54. // where 'Relative Id' is the lowest sub authority in the account's
  55. // Sid
  56. //
  57. #define SE_NULL_POSIX_OFFSET ((ULONG) 0x00000000)
  58. #define SE_BUILT_IN_DOMAIN_POSIX_OFFSET ((ULONG) 0x00020000)
  59. #define SE_ACCOUNT_DOMAIN_POSIX_OFFSET ((ULONG) 0x00030000)
  60. //
  61. // NOTE: The following is valid for workstations that have joined a
  62. // domain only.
  63. //
  64. #define SE_PRIMARY_DOMAIN_POSIX_OFFSET ((ULONG) 0x00100000)
  65. //
  66. // Seed and increment for Trusted Domain Posix Offsets
  67. //
  68. #define SE_INITIAL_TRUSTED_DOMAIN_POSIX_OFFSET ((ULONG) 0x00200000)
  69. #define SE_TRUSTED_DOMAIN_POSIX_OFFSET_INCR ((ULONG) 0x00100000)
  70. #define SE_MAX_TRUSTED_DOMAIN_POSIX_OFFSET ((ULONG) 0xfff00000)
  71. #endif // _SEPOSIX_