mirror of
https://github.com/reactos/reactos.git
synced 2025-01-10 16:18:16 +00:00
Aric Stewart : advapi32: Add Security Label sids used by IE7.
<aric at codeweavers.com> svn path=/trunk/; revision=39401
This commit is contained in:
parent
9cf81b0af1
commit
63e35e6ed4
2 changed files with 90 additions and 64 deletions
|
@ -108,6 +108,10 @@ static const WELLKNOWNSID WellKnownSids[] =
|
||||||
{ {0,0}, WinBuiltinAuthorizationAccessSid, { SID_REVISION, 2, { SECURITY_NT_AUTHORITY }, { SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS } } },
|
{ {0,0}, WinBuiltinAuthorizationAccessSid, { SID_REVISION, 2, { SECURITY_NT_AUTHORITY }, { SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_AUTHORIZATIONACCESS } } },
|
||||||
{ {0,0}, WinBuiltinTerminalServerLicenseServersSid, { SID_REVISION, 2, { SECURITY_NT_AUTHORITY }, { SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS } } },
|
{ {0,0}, WinBuiltinTerminalServerLicenseServersSid, { SID_REVISION, 2, { SECURITY_NT_AUTHORITY }, { SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_TS_LICENSE_SERVERS } } },
|
||||||
{ {0,0}, WinBuiltinDCOMUsersSid, { SID_REVISION, 2, { SECURITY_NT_AUTHORITY }, { SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_DCOM_USERS } } },
|
{ {0,0}, WinBuiltinDCOMUsersSid, { SID_REVISION, 2, { SECURITY_NT_AUTHORITY }, { SECURITY_BUILTIN_DOMAIN_RID, DOMAIN_ALIAS_RID_DCOM_USERS } } },
|
||||||
|
{ {'L','W'}, WinLowLabelSid, { SID_REVISION, 1, { SECURITY_MANDATORY_LABEL_AUTHORITY}, { SECURITY_MANDATORY_LOW_RID} } },
|
||||||
|
{ {'M','E'}, WinMediumLabelSid, { SID_REVISION, 1, { SECURITY_MANDATORY_LABEL_AUTHORITY}, { SECURITY_MANDATORY_MEDIUM_RID } } },
|
||||||
|
{ {'H','I'}, WinHighLabelSid, { SID_REVISION, 1, { SECURITY_MANDATORY_LABEL_AUTHORITY}, { SECURITY_MANDATORY_HIGH_RID } } },
|
||||||
|
{ {'S','I'}, WinSystemLabelSid, { SID_REVISION, 1, { SECURITY_MANDATORY_LABEL_AUTHORITY}, { SECURITY_MANDATORY_SYSTEM_RID } } },
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef struct WELLKNOWNRID
|
typedef struct WELLKNOWNRID
|
||||||
|
|
|
@ -596,6 +596,14 @@ typedef DWORD FLONG;
|
||||||
#define DOMAIN_GROUP_RID_ENTERPRISE_ADMINS 0x00000207L
|
#define DOMAIN_GROUP_RID_ENTERPRISE_ADMINS 0x00000207L
|
||||||
#define DOMAIN_GROUP_RID_POLICY_ADMINS 0x00000208L
|
#define DOMAIN_GROUP_RID_POLICY_ADMINS 0x00000208L
|
||||||
|
|
||||||
|
#define SECURITY_MANDATORY_LABEL_AUTHORITY {0,0,0,0,0,16}
|
||||||
|
#define SECURITY_MANDATORY_UNTRUSTED_RID 0x00000000L
|
||||||
|
#define SECURITY_MANDATORY_LOW_RID 0x00001000L
|
||||||
|
#define SECURITY_MANDATORY_MEDIUM_RID 0x00002000L
|
||||||
|
#define SECURITY_MANDATORY_HIGH_RID 0x00003000L
|
||||||
|
#define SECURITY_MANDATORY_SYSTEM_RID 0x00004000L
|
||||||
|
#define SECURITY_MANDATORY_PROTECTED_PROCESS_RID 0x00005000L
|
||||||
|
|
||||||
#define DOMAIN_ALIAS_RID_ADMINS 0x00000220L
|
#define DOMAIN_ALIAS_RID_ADMINS 0x00000220L
|
||||||
#define DOMAIN_ALIAS_RID_USERS 0x00000221L
|
#define DOMAIN_ALIAS_RID_USERS 0x00000221L
|
||||||
#define DOMAIN_ALIAS_RID_GUESTS 0x00000222L
|
#define DOMAIN_ALIAS_RID_GUESTS 0x00000222L
|
||||||
|
@ -621,70 +629,84 @@ typedef DWORD FLONG;
|
||||||
|
|
||||||
#define SECURITY_MANDATORY_LABEL_AUTHORITY {0,0,0,0,0,16}
|
#define SECURITY_MANDATORY_LABEL_AUTHORITY {0,0,0,0,0,16}
|
||||||
|
|
||||||
typedef enum
|
typedef enum {
|
||||||
{
|
WinNullSid = 0,
|
||||||
WinNullSid = 0,
|
WinWorldSid = 1,
|
||||||
WinWorldSid,
|
WinLocalSid = 2,
|
||||||
WinLocalSid,
|
WinCreatorOwnerSid = 3,
|
||||||
WinCreatorOwnerSid,
|
WinCreatorGroupSid = 4,
|
||||||
WinCreatorGroupSid,
|
WinCreatorOwnerServerSid = 5,
|
||||||
WinCreatorOwnerServerSid,
|
WinCreatorGroupServerSid = 6,
|
||||||
WinCreatorGroupServerSid,
|
WinNtAuthoritySid = 7,
|
||||||
WinNtAuthoritySid,
|
WinDialupSid = 8,
|
||||||
WinDialupSid,
|
WinNetworkSid = 9,
|
||||||
WinNetworkSid,
|
WinBatchSid = 10,
|
||||||
WinBatchSid,
|
WinInteractiveSid = 11,
|
||||||
WinInteractiveSid,
|
WinServiceSid = 12,
|
||||||
WinServiceSid,
|
WinAnonymousSid = 13,
|
||||||
WinAnonymousSid,
|
WinProxySid = 14,
|
||||||
WinProxySid,
|
WinEnterpriseControllersSid = 15,
|
||||||
WinEnterpriseControllersSid,
|
WinSelfSid = 16,
|
||||||
WinSelfSid,
|
WinAuthenticatedUserSid = 17,
|
||||||
WinAuthenticatedUserSid,
|
WinRestrictedCodeSid = 18,
|
||||||
WinRestrictedCodeSid,
|
WinTerminalServerSid = 19,
|
||||||
WinTerminalServerSid,
|
WinRemoteLogonIdSid = 20,
|
||||||
WinRemoteLogonIdSid,
|
WinLogonIdsSid = 21,
|
||||||
WinLogonIdsSid,
|
WinLocalSystemSid = 22,
|
||||||
WinLocalSystemSid,
|
WinLocalServiceSid = 23,
|
||||||
WinLocalServiceSid,
|
WinNetworkServiceSid = 24,
|
||||||
WinNetworkServiceSid,
|
WinBuiltinDomainSid = 25,
|
||||||
WinBuiltinDomainSid,
|
WinBuiltinAdministratorsSid = 26,
|
||||||
WinBuiltinAdministratorsSid,
|
WinBuiltinUsersSid = 27,
|
||||||
WinBuiltinUsersSid,
|
WinBuiltinGuestsSid = 28,
|
||||||
WinBuiltinGuestsSid,
|
WinBuiltinPowerUsersSid = 29,
|
||||||
WinBuiltinPowerUsersSid,
|
WinBuiltinAccountOperatorsSid = 30,
|
||||||
WinBuiltinAccountOperatorsSid,
|
WinBuiltinSystemOperatorsSid = 31,
|
||||||
WinBuiltinSystemOperatorsSid,
|
WinBuiltinPrintOperatorsSid = 32,
|
||||||
WinBuiltinPrintOperatorsSid,
|
WinBuiltinBackupOperatorsSid = 33,
|
||||||
WinBuiltinBackupOperatorsSid,
|
WinBuiltinReplicatorSid = 34,
|
||||||
WinBuiltinReplicatorSid,
|
WinBuiltinPreWindows2000CompatibleAccessSid = 35,
|
||||||
WinBuiltinPreWindows2000CompatibleAccessSid,
|
WinBuiltinRemoteDesktopUsersSid = 36,
|
||||||
WinBuiltinRemoteDesktopUsersSid,
|
WinBuiltinNetworkConfigurationOperatorsSid = 37,
|
||||||
WinBuiltinNetworkConfigurationOperatorsSid,
|
WinAccountAdministratorSid = 38,
|
||||||
WinAccountAdministratorSid,
|
WinAccountGuestSid = 39,
|
||||||
WinAccountGuestSid,
|
WinAccountKrbtgtSid = 40,
|
||||||
WinAccountKrbtgtSid,
|
WinAccountDomainAdminsSid = 41,
|
||||||
WinAccountDomainAdminsSid,
|
WinAccountDomainUsersSid = 42,
|
||||||
WinAccountDomainUsersSid,
|
WinAccountDomainGuestsSid = 43,
|
||||||
WinAccountDomainGuestsSid,
|
WinAccountComputersSid = 44,
|
||||||
WinAccountComputersSid,
|
WinAccountControllersSid = 45,
|
||||||
WinAccountControllersSid,
|
WinAccountCertAdminsSid = 46,
|
||||||
WinAccountCertAdminsSid,
|
WinAccountSchemaAdminsSid = 47,
|
||||||
WinAccountSchemaAdminsSid,
|
WinAccountEnterpriseAdminsSid = 48,
|
||||||
WinAccountEnterpriseAdminsSid,
|
WinAccountPolicyAdminsSid = 49,
|
||||||
WinAccountPolicyAdminsSid,
|
WinAccountRasAndIasServersSid = 50,
|
||||||
WinAccountRasAndIasServersSid,
|
WinNTLMAuthenticationSid = 51,
|
||||||
WinNTLMAuthenticationSid,
|
WinDigestAuthenticationSid = 52,
|
||||||
WinDigestAuthenticationSid,
|
WinSChannelAuthenticationSid = 53,
|
||||||
WinSChannelAuthenticationSid,
|
WinThisOrganizationSid = 54,
|
||||||
WinThisOrganizationSid,
|
WinOtherOrganizationSid = 55,
|
||||||
WinOtherOrganizationSid,
|
WinBuiltinIncomingForestTrustBuildersSid = 56,
|
||||||
WinBuiltinIncomingForestTrustBuildersSid,
|
WinBuiltinPerfMonitoringUsersSid = 57,
|
||||||
WinBuiltinPerfMonitoringUsersSid,
|
WinBuiltinPerfLoggingUsersSid = 58,
|
||||||
WinBuiltinPerfLoggingUsersSid,
|
WinBuiltinAuthorizationAccessSid = 59,
|
||||||
WinBuiltinAuthorizationAccessSid,
|
WinBuiltinTerminalServerLicenseServersSid = 60,
|
||||||
WinBuiltinTerminalServerLicenseServersSid,
|
WinBuiltinDCOMUsersSid = 61,
|
||||||
WinBuiltinDCOMUsersSid
|
WinBuiltinIUsersSid = 62,
|
||||||
|
WinIUserSid = 63,
|
||||||
|
WinBuiltinCryptoOperatorsSid = 64,
|
||||||
|
WinUntrustedLabelSid = 65,
|
||||||
|
WinLowLabelSid = 66,
|
||||||
|
WinMediumLabelSid = 67,
|
||||||
|
WinHighLabelSid = 68,
|
||||||
|
WinSystemLabelSid = 69,
|
||||||
|
WinWriteRestrictedCodeSid = 70,
|
||||||
|
WinCreatorOwnerRightsSid = 71,
|
||||||
|
WinCacheablePrincipalsGroupSid = 72,
|
||||||
|
WinNonCacheablePrincipalsGroupSid = 73,
|
||||||
|
WinEnterpriseReadonlyControllersSid = 74,
|
||||||
|
WinAccountReadonlyControllersSid = 75,
|
||||||
|
WinBuiltinEventLogReadersGroup = 76
|
||||||
} WELL_KNOWN_SID_TYPE;
|
} WELL_KNOWN_SID_TYPE;
|
||||||
|
|
||||||
#define SE_CREATE_TOKEN_NAME TEXT("SeCreateTokenPrivilege")
|
#define SE_CREATE_TOKEN_NAME TEXT("SeCreateTokenPrivilege")
|
||||||
|
|
Loading…
Reference in a new issue