#include "ntrtlp.h"
#include <stdio.h>
#include "seopaque.h"
#include "sertlp.h"
#include <..\dll\ldrp.h>
Go to the source code of this file.
Defines | |
#define | CREATOR_SID_SIZE 12 |
#define | max(a, b) (((a) > (b)) ? (a) : (b)) |
#define | SE_VALID_CONTROL_BITS |
#define | ProbeAndReadUlongUM(Address) (*(volatile ULONG *)(Address)) |
#define | MAX_CHILD_SID_GROUP_SIZE 3 |
#define | EFFECTIVE_ACE INHERIT_ONLY_ACE |
#define | AceFlagsInAce(_Ace) |
Enumerations | |
enum | ACE_TYPE_TO_COPY { CopyInheritedAces, CopyNonInheritedAces, CopyAllAces } |
Functions | |
ULONG | RtlLengthUsedSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor) |
NTSYSAPI BOOLEAN NTAPI | RtlEqualLuid (PLUID Luid1, PLUID Luid2) |
NTSTATUS | RtlpConvertAclToAutoInherit (IN PACL ParentAcl OPTIONAL, IN PACL ChildAcl, IN GUID *ObjectType OPTIONAL, IN BOOLEAN IsDirectoryObject, IN PSID OwnerSid, IN PSID GroupSid, IN PGENERIC_MAPPING GenericMapping, OUT PACL *NewAcl, OUT PULONG NewGenericControl) |
BOOLEAN | RtlpCopyEffectiveAce (IN PACE_HEADER OldAce, IN BOOLEAN AutoInherit, IN BOOLEAN WillGenerateInheritAce, IN PSID ClientOwnerSid, IN PSID ClientGroupSid, IN PSID ServerOwnerSid OPTIONAL, IN PSID ServerGroupSid OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN GUID *NewObjectType OPTIONAL, IN OUT PVOID *AcePosition, OUT PULONG NewAceLength, OUT PACL NewAcl, OUT PBOOLEAN ObjectAceInherited OPTIONAL, OUT PBOOLEAN EffectiveAceMapped, OUT PBOOLEAN AclOverflowed) |
NTSTATUS | RtlpCopyAces (IN PACL Acl, IN PGENERIC_MAPPING GenericMapping, IN ACE_TYPE_TO_COPY AceTypeToCopy, IN UCHAR AceFlagsToReset, IN BOOLEAN MapSids, IN PSID ClientOwnerSid, IN PSID ClientGroupSid, IN PSID ServerOwnerSid OPTIONAL, IN PSID ServerGroupSid OPTIONAL, OUT PULONG NewAclSizeParam, OUT PACL NewAcl) |
NTSTATUS | RtlpGenerateInheritedAce (IN PACE_HEADER OldAce, IN BOOLEAN IsDirectoryObject, IN BOOLEAN AutoInherit, IN PSID ClientOwnerSid, IN PSID ClientGroupSid, IN PSID ServerOwnerSid OPTIONAL, IN PSID ServerGroupSid OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN GUID *NewObjectType OPTIONAL, OUT PULONG NewAceLength, OUT PACL NewAcl, OUT PULONG NewAceExtraLength, OUT PBOOLEAN ObjectAceInherited) |
NTSTATUS | RtlpGenerateInheritAcl (IN PACL Acl, IN BOOLEAN IsDirectoryObject, IN BOOLEAN AutoInherit, IN PSID ClientOwnerSid, IN PSID ClientGroupSid, IN PSID ServerOwnerSid OPTIONAL, IN PSID ServerGroupSid OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN GUID *NewObjectType OPTIONAL, OUT PULONG NewAclSizeParam, OUT PACL NewAcl, OUT PBOOLEAN ObjectAceInherited) |
NTSTATUS | RtlpInheritAcl2 (IN PACL DirectoryAcl, IN PACL ChildAcl, IN ULONG ChildGenericControl, IN BOOLEAN IsDirectoryObject, IN BOOLEAN AutoInherit, IN BOOLEAN DefaultDescriptorForObject, IN PSID OwnerSid, IN PSID GroupSid, IN PSID ServerOwnerSid OPTIONAL, IN PSID ServerGroupSid OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN BOOLEAN IsSacl, IN GUID *NewObjectType OPTIONAL, IN PULONG AclBufferSize, IN OUT PUCHAR AclBuffer, OUT PBOOLEAN NewAclExplicitlyAssigned, OUT PULONG NewGenericControl) |
NTSTATUS | RtlpComputeMergedAcl (IN PACL CurrentAcl, IN ULONG CurrentGenericControl, IN PACL ModificationAcl, IN ULONG ModificationGenericControl, IN PSID ClientOwnerSid, IN PSID ClientGroupSid, IN PGENERIC_MAPPING GenericMapping, IN BOOLEAN IsSacl, OUT PACL *NewAcl, OUT PULONG NewGenericControl) |
NTSTATUS | RtlpComputeMergedAcl2 (IN PACL CurrentAcl, IN ULONG CurrentGenericControl, IN PACL ModificationAcl, IN ULONG ModificationGenericControl, IN PSID ClientOwnerSid, IN PSID ClientGroupSid, IN PGENERIC_MAPPING GenericMapping, IN BOOLEAN IsSacl, IN PULONG AclBufferSize, IN OUT PUCHAR AclBuffer, OUT PULONG NewGenericControl) |
BOOLEAN | RtlpCompareAces (IN PKNOWN_ACE InheritedAce, IN PKNOWN_ACE ChildAce, IN PSID OwnerSid, IN PSID GroupSid) |
BOOLEAN | RtlpCompareKnownObjectAces (IN PKNOWN_OBJECT_ACE InheritedAce, IN PKNOWN_OBJECT_ACE ChildAce, IN PSID OwnerSid OPTIONAL, IN PSID GroupSid OPTIONAL) |
BOOLEAN | RtlpCompareKnownAces (IN PKNOWN_ACE InheritedAce, IN PKNOWN_ACE ChildAce, IN PSID OwnerSid OPTIONAL, IN PSID GroupSid OPTIONAL) |
BOOLEAN | RtlpIsDuplicateAce (IN PACL Acl, IN PKNOWN_ACE NewAce, IN GUID *ObjectType OPTIONAL) |
NTSTATUS | RtlpCreateServerAcl (IN PACL Acl, IN BOOLEAN AclUntrusted, IN PSID ServerSid, OUT PACL *ServerAcl, OUT BOOLEAN *ServerAclAllocated) |
NTSTATUS | RtlpGetDefaultsSubjectContext (HANDLE ClientToken, OUT PTOKEN_OWNER *OwnerInfo, OUT PTOKEN_PRIMARY_GROUP *GroupInfo, OUT PTOKEN_DEFAULT_DACL *DefaultDaclInfo, OUT PTOKEN_OWNER *ServerOwner, OUT PTOKEN_PRIMARY_GROUP *ServerGroup) |
BOOLEAN | RtlpValidateSDOffsetAndSize (IN ULONG Offset, IN ULONG Length, IN ULONG MinLength, OUT PULONG MaxLength) |
BOOLEAN | RtlValidRelativeSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptorInput, IN ULONG SecurityDescriptorLength, IN SECURITY_INFORMATION RequiredInformation) |
VOID | RtlRunEncodeUnicodeString (PUCHAR Seed OPTIONAL, PUNICODE_STRING String) |
VOID | RtlRunDecodeUnicodeString (UCHAR Seed, PUNICODE_STRING String) |
VOID | RtlEraseUnicodeString (PUNICODE_STRING String) |
NTSTATUS | RtlAdjustPrivilege (ULONG Privilege, BOOLEAN Enable, BOOLEAN Client, PBOOLEAN WasEnabled) |
BOOLEAN | RtlValidSid (IN PSID Sid) |
BOOLEAN | RtlEqualSid (IN PSID Sid1, IN PSID Sid2) |
BOOLEAN | RtlEqualPrefixSid (IN PSID Sid1, IN PSID Sid2) |
ULONG | RtlLengthRequiredSid (IN ULONG SubAuthorityCount) |
NTSTATUS | RtlAllocateAndInitializeSid (IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount, IN ULONG SubAuthority0, IN ULONG SubAuthority1, IN ULONG SubAuthority2, IN ULONG SubAuthority3, IN ULONG SubAuthority4, IN ULONG SubAuthority5, IN ULONG SubAuthority6, IN ULONG SubAuthority7, OUT PSID *Sid) |
NTSTATUS | RtlInitializeSid (IN PSID Sid, IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount) |
PVOID | RtlFreeSid (IN PSID Sid) |
PSID_IDENTIFIER_AUTHORITY | RtlIdentifierAuthoritySid (IN PSID Sid) |
PULONG | RtlSubAuthoritySid (IN PSID Sid, IN ULONG SubAuthority) |
PUCHAR | RtlSubAuthorityCountSid (IN PSID Sid) |
ULONG | RtlLengthSid (IN PSID Sid) |
NTSTATUS | RtlCopySid (IN ULONG DestinationSidLength, OUT PSID DestinationSid, IN PSID SourceSid) |
NTSTATUS | RtlCopySidAndAttributesArray (IN ULONG ArrayLength, IN PSID_AND_ATTRIBUTES Source, IN ULONG TargetSidBufferSize, OUT PSID_AND_ATTRIBUTES TargetArrayElement, OUT PSID TargetSid, OUT PSID *NextTargetSid, OUT PULONG RemainingTargetSidBufferSize) |
NTSTATUS | RtlLengthSidAsUnicodeString (PSID Sid, PULONG StringLength) |
NTSTATUS | RtlConvertSidToUnicodeString (PUNICODE_STRING UnicodeString, PSID Sid, BOOLEAN AllocateDestinationString) |
BOOLEAN | RtlEqualLuid (IN PLUID Luid1, IN PLUID Luid2) |
VOID | RtlCopyLuid (OUT PLUID DestinationLuid, IN PLUID SourceLuid) |
VOID | RtlCopyLuidAndAttributesArray (IN ULONG ArrayLength, IN PLUID_AND_ATTRIBUTES Source, OUT PLUID_AND_ATTRIBUTES Target) |
NTSTATUS | RtlCreateSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN ULONG Revision) |
NTSTATUS | RtlCreateSecurityDescriptorRelative (IN PISECURITY_DESCRIPTOR_RELATIVE SecurityDescriptor, IN ULONG Revision) |
BOOLEAN | RtlValidSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor) |
ULONG | RtlLengthSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor) |
NTSTATUS | RtlSetAttributesSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN SECURITY_DESCRIPTOR_CONTROL Control, OUT PULONG Revision) |
NTSTATUS | RtlGetControlSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSECURITY_DESCRIPTOR_CONTROL Control, OUT PULONG Revision) |
NTSTATUS | RtlSetControlSecurityDescriptor (IN PSECURITY_DESCRIPTOR pSecurityDescriptor, IN SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, IN SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet) |
NTSTATUS | RtlSetDaclSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN BOOLEAN DaclPresent, IN PACL Dacl OPTIONAL, IN BOOLEAN DaclDefaulted OPTIONAL) |
NTSTATUS | RtlGetDaclSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PBOOLEAN DaclPresent, OUT PACL *Dacl, OUT PBOOLEAN DaclDefaulted) |
NTSTATUS | RtlSetSaclSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN BOOLEAN SaclPresent, IN PACL Sacl OPTIONAL, IN BOOLEAN SaclDefaulted OPTIONAL) |
NTSTATUS | RtlGetSaclSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PBOOLEAN SaclPresent, OUT PACL *Sacl, OUT PBOOLEAN SaclDefaulted) |
NTSTATUS | RtlSetOwnerSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSID Owner OPTIONAL, IN BOOLEAN OwnerDefaulted OPTIONAL) |
NTSTATUS | RtlGetOwnerSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSID *Owner, OUT PBOOLEAN OwnerDefaulted) |
NTSTATUS | RtlSetGroupSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSID Group OPTIONAL, IN BOOLEAN GroupDefaulted OPTIONAL) |
NTSTATUS | RtlGetGroupSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSID *Group, OUT PBOOLEAN GroupDefaulted) |
BOOLEAN | RtlAreAllAccessesGranted (IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess) |
BOOLEAN | RtlAreAnyAccessesGranted (IN ACCESS_MASK GrantedAccess, IN ACCESS_MASK DesiredAccess) |
VOID | RtlMapGenericMask (IN OUT PACCESS_MASK AccessMask, IN PGENERIC_MAPPING GenericMapping) |
NTSTATUS | RtlImpersonateSelf (IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel) |
BOOLEAN | RtlpValidOwnerSubjectContext (IN HANDLE Token, IN PSID Owner, IN BOOLEAN ServerObject, OUT PNTSTATUS ReturnStatus) |
VOID | RtlpApplyAclToObject (IN PACL Acl, IN PGENERIC_MAPPING GenericMapping) |
NTSTATUS | RtlpInheritAcl (IN PACL DirectoryAcl, IN PACL ChildAcl, IN ULONG ChildGenericControl, IN BOOLEAN IsDirectoryObject, IN BOOLEAN AutoInherit, IN BOOLEAN DefaultDescriptorForObject, IN PSID OwnerSid, IN PSID GroupSid, IN PSID ServerOwnerSid OPTIONAL, IN PSID ServerGroupSid OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN BOOLEAN IsSacl, IN GUID *NewObjectType OPTIONAL, OUT PACL *NewAcl, OUT PBOOLEAN NewAclExplicitlyAssigned, OUT PULONG NewGenericControl) |
NTSTATUS | RtlpConvertToAutoInheritSecurityObject (IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, IN PSECURITY_DESCRIPTOR CurrentSecurityDescriptor, OUT PSECURITY_DESCRIPTOR *NewSecurityDescriptor, IN GUID *ObjectType OPTIONAL, IN BOOLEAN IsDirectoryObject, IN PGENERIC_MAPPING GenericMapping) |
NTSTATUS | RtlpNewSecurityObject (IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, IN PSECURITY_DESCRIPTOR CreatorDescriptor OPTIONAL, OUT PSECURITY_DESCRIPTOR *NewDescriptor, IN GUID *ObjectType OPTIONAL, IN BOOLEAN IsDirectoryObject, IN ULONG AutoInheritFlags, IN HANDLE Token OPTIONAL, IN PGENERIC_MAPPING GenericMapping) |
NTSTATUS | RtlpSetSecurityObject (IN PVOID Object OPTIONAL, IN SECURITY_INFORMATION SecurityInformation, IN PSECURITY_DESCRIPTOR ModificationDescriptor, IN OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, IN ULONG AutoInheritFlags, IN ULONG PoolType, IN PGENERIC_MAPPING GenericMapping, IN HANDLE Token OPTIONAL) |
BOOLEAN | RtlGetSecurityDescriptorRMControl (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PUCHAR RMControl) |
VOID | RtlSetSecurityDescriptorRMControl (IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN PUCHAR RMControl OPTIONAL) |
Variables | |
UCHAR | RtlBaseAceType [] |
UCHAR | RtlIsSystemAceType [] |
BOOLEAN | RtlpVerboseConvert = FALSE |
|
Value:
Definition at line 6966 of file sertl.c. Referenced by RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), and RtlpConvertAclToAutoInherit(). |
|
Definition at line 330 of file sertl.c. Referenced by RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), RtlpConvertAclToAutoInherit(), RtlpCopyEffectiveAce(), and RtlpGenerateInheritedAce(). |
|
Definition at line 6965 of file sertl.c. Referenced by RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), and RtlpConvertAclToAutoInherit(). |
|
|
|
|
Referenced by RtlValidSid(). |
|
Value:
Definition at line 370 of file sertl.c. Referenced by RtlSetAttributesSecurityDescriptor(), and RtlSetControlSecurityDescriptor(). |
|
Definition at line 89 of file sertl.c. Referenced by RtlpInheritAcl2().
|
|
Definition at line 639 of file sertl.c. References ANYSIZE_ARRAY, ASSERT, Buffer1, Buffer2, FALSE, NT_SUCCESS, NtAdjustPrivilegesToken(), NtClose(), NtOpenProcessToken(), NtOpenThreadToken(), NTSTATUS(), RTL_PAGED_CODE, Status, Token, and TRUE. Referenced by main().
|
|
Definition at line 1062 of file sertl.c. References NULL, RTL_PAGED_CODE, RtlAllocateHeap, and RtlLengthRequiredSid(). Referenced by CreateBSMEventSD(), and CsrpConnectToServer().
|
|
Definition at line 3309 of file sertl.c. References RTL_PAGED_CODE. Referenced by _BlockInput(), CheckGrantedAccess(), CheckWinstaWriteAttributesAccess(), InitiateShutdown(), xxxInternalKeyEventDirect(), xxxSetProcessWindowStation(), and zzzSetWindowsHookEx().
|
|
Definition at line 3344 of file sertl.c. References RTL_PAGED_CODE. Referenced by NtUserGetAsyncKeyState().
|
|
Definition at line 1611 of file sertl.c. References L, NT_SUCCESS, NTSTATUS(), Offset, RTL_PAGED_CODE, RtlCopyUnicodeString(), RtlCreateUnicodeString(), RtlIntegerToUnicode(), RtlLargeIntegerToUnicode(), RtlValidSid(), Status, TRUE, and USHORT. Referenced by RtlFormatCurrentUserKeyPath().
|
|
Definition at line 1863 of file sertl.c. References RTL_PAGED_CODE. Referenced by NtCreateToken().
|
|
Definition at line 1896 of file sertl.c. References Index, and RTL_PAGED_CODE. Referenced by NtQueryInformationToken(), SepFilterToken(), and SeQueryInformationToken().
|
|
Definition at line 1380 of file sertl.c. References RTL_PAGED_CODE, and SeLengthSid. Referenced by AllocAce(), CreateDAclToken(), GenerateDescriptor(), GetSiteSidFromToken(), NtCloseObjectAuditAlarm(), NtDeleteObjectAuditAlarm(), NtQueryInformationToken(), RtlAddCompoundAce(), RtlCopySidAndAttributesArray(), RtlpAddKnownAce(), RtlpAddKnownObjectAce(), RtlpInitializeAllowedAce(), RtlpInitializeAuditAce(), RtlpInitializeDeniedAce(), RtlpNewSecurityObject(), SepAdjustGroups(), SepCreateToken(), SeQueryInformationToken(), TestSeAclRtl(), TestSeSid(), TSeVariableInitialization(), and xxxCreateWindowStation().
|
|
Definition at line 1436 of file sertl.c. References Index, LongAlign, RTL_PAGED_CODE, RtlCopySid(), and SeLengthSid. Referenced by NtQueryInformationJobObject(), NtQueryInformationToken(), SepCreateToken(), SepFilterToken(), SeQueryInformationToken(), and TestSeSid().
|
|
Definition at line 1945 of file sertl.c. References RTL_PAGED_CODE. Referenced by CmpHiveRootSecurityDescriptor(), CreateBSMEventSD(), CreateDAclToken(), CreateSecurityDescriptor(), GenerateDescriptor(), InternalCreateCallbackThread(), IoCreateUnprotectedSymbolicLink(), IopApplySystemPartitionProt(), IopCreateDefaultDeviceSecurityDescriptor(), IopInitializePlugPlayServices(), IopOpenDeviceParametersSubkey(), NtOpenThreadToken(), ObInitSystem(), ObpGetDosDevicesProtection(), RtlCreateAndSetSD(), RtlpNewSecurityObject(), RtlQuerySecurityObject(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), SepInitializationPhase1(), SepInitSystemDacls(), SeRmInitPhase1(), SmbTraceStart(), TestSeAccess(), TestSeNamedCreate(), TestSeSecurityDescriptor(), and TestTokenInitialize().
|
|
Definition at line 2004 of file sertl.c. References RTL_PAGED_CODE. Referenced by RtlpConvertToAutoInheritSecurityObject(), RtlpNewSecurityObject(), RtlpSetSecurityObject(), SeAssignWorldSecurityDescriptor(), and SeQuerySecurityDescriptorInfo().
|
|
|
|
|
Definition at line 924 of file sertl.c. References FALSE, Index, RTL_PAGED_CODE, and TRUE. Referenced by RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), and RtlpCopyEffectiveAce().
|
|
Definition at line 871 of file sertl.c. References FALSE, RTL_PAGED_CODE, RtlSubAuthorityCountSid(), and SeLengthSid. Referenced by IopCreateDefaultDeviceSecurityDescriptor(), IopOpenDeviceParametersSubkey(), NtSecureConnectPort(), NtSetInformationToken(), RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), RtlpValidOwnerSubjectContext(), SeFastTraverseCheck(), SepAdjustGroups(), SepAdtPrivilegeObjectAuditAlarm(), SepCreateToken(), SepIdAssignableAsGroup(), SepMakeTokenEffectiveOnly(), SepRemoveDisabledGroupsAndPrivileges(), SePrivilegedServiceAuditAlarm(), SepSidInSidAndAttributes(), SepSidInToken(), SepSidInTokenEx(), SepSidTranslation(), SepValidOwnerSubjectContext(), SidTranslation(), TestpCompareDuplicateToken(), TestSeAclRtl(), TestSeSid(), TestTokenQuery(), and TestTokenSet().
|
|
Definition at line 596 of file sertl.c. References NULL, RTL_PAGED_CODE, and String.
|
|
Definition at line 1218 of file sertl.c. References NULL, RTL_PAGED_CODE, and RtlFreeHeap. Referenced by CreateBSMEventSD(), CsrpConnectToServer(), and InitializeRestrictedStuff().
|
|
Definition at line 2415 of file sertl.c. References RTL_PAGED_CODE. Referenced by TestSeSecurityDescriptor().
|
|
Definition at line 2665 of file sertl.c. References Dacl, and RTL_PAGED_CODE. Referenced by DumpSecurity(), IopChangeDeviceObjectFromRegistryProperties(), IopOpenDeviceParametersSubkey(), IopSetSecurityObjectFromRegistry(), ObpFreeDosDevicesProtection(), ObpHashSecurityDescriptor(), and TestSeSecurityDescriptor().
|
|
Definition at line 3232 of file sertl.c. References Group, and RTL_PAGED_CODE. Referenced by IopChangeDeviceObjectFromRegistryProperties(), IopSetSecurityObjectFromRegistry(), ObpHashSecurityDescriptor(), and TestSeSecurityDescriptor().
|
|
Definition at line 3059 of file sertl.c. References Owner, and RTL_PAGED_CODE. Referenced by IopChangeDeviceObjectFromRegistryProperties(), IopSetSecurityObjectFromRegistry(), ObpHashSecurityDescriptor(), and TestSeSecurityDescriptor().
|
|
Definition at line 2871 of file sertl.c. References RTL_PAGED_CODE. Referenced by IopChangeDeviceObjectFromRegistryProperties(), IopSetSecurityObjectFromRegistry(), ObpHashSecurityDescriptor(), and TestSeSecurityDescriptor().
|
|
Definition at line 11323 of file sertl.c.
|
|
Definition at line 1253 of file sertl.c. References RTL_PAGED_CODE. Referenced by DisplayAccountSid().
|
|
Definition at line 3446 of file sertl.c. References FALSE, NT_SUCCESS, NtClose(), NtDuplicateToken(), NtOpenProcessToken(), NtSetInformationThread(), NTSTATUS(), NULL, ObjectAttributes, RTL_PAGED_CODE, and Status.
|
|
Definition at line 1166 of file sertl.c. References RTL_PAGED_CODE. Referenced by CmpHiveRootSecurityDescriptor(), GenerateDescriptor(), InitVars(), RtlDefaultNpAcl(), RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), RtlpConvertAclToAutoInherit(), RtlpCopyEffectiveAce(), SepVariableInitialization(), TestSeAclRtl(), TestTokenSet(), and TSeVariableInitialization().
|
|
Definition at line 1030 of file sertl.c. References L, and RTL_PAGED_CODE. Referenced by CmpHiveRootSecurityDescriptor(), GenerateDescriptor(), InitVars(), NtQueryQuotaInformationFile(), RtlAllocateAndInitializeSid(), RtlDefaultNpAcl(), RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), RtlpConvertAclToAutoInherit(), RtlpCopyEffectiveAce(), RtlpGenerateInheritedAce(), RtlpSetSecurityObject(), SeCaptureSecurityDescriptor(), SeCaptureSid(), SeCaptureSidAndAttributesArray(), SepCreateToken(), SepVariableInitialization(), TestSeAclRtl(), TestSeSid(), TestTokenSet(), and TSeVariableInitialization().
|
|
Definition at line 2165 of file sertl.c. References NULL, RTL_PAGED_CODE, and SeLengthSid. Referenced by CmpAssignSecurityDescriptor(), CmpFindMatchingDescriptorCell(), CmpSetSecurityDescriptorInfo(), EhpAttachSecurity(), NtQueryObject(), ObpCompareSecurityDescriptors(), ObpCreateCacheEntry(), and TestSeSecurityDescriptor().
|
|
Definition at line 1350 of file sertl.c. References RTL_PAGED_CODE, and SeLengthSid. Referenced by _GetUserObjectInformation(), AllocAce(), CreateBSMEventSD(), GetSiteSidFromToken(), IoCheckQuotaBufferValidity(), IopCheckGetQuotaBufferValidity(), IopInitializePlugPlayServices(), IopOpenDeviceParametersSubkey(), ObpGetDosDevicesProtection(), ObpHashSecurityDescriptor(), RtlCreateAndSetSD(), RtlDefaultNpAcl(), RtlpInitializeAllowedAce(), RtlpInitializeAuditAce(), RtlpInitializeDeniedAce(), SeCaptureSidAndAttributesArray(), and xxxCreateWindowStation().
|
|
Definition at line 1532 of file sertl.c. References RTL_PAGED_CODE, RtlValidSid(), StringLength(), and TRUE. Referenced by RtlFormatCurrentUserKeyPath().
|
|
Definition at line 2265 of file sertl.c. References NULL, RTL_PAGED_CODE, RtlQueryInformationAcl(), and SeLengthSid.
|
|
Definition at line 3381 of file sertl.c. References RTL_PAGED_CODE. Referenced by IoCheckDesiredAccess(), IopParseDevice(), NtDuplicateObject(), ObpIncrementHandleCount(), ObpIncrementUnnamedHandleCount(), RtlNewSecurityGrantedAccess(), RtlpConvertAclToAutoInherit(), SeCreateAccessState(), SeOpenObjectAuditAlarm(), SeOpenObjectForDeleteAuditAlarm(), and xxxCreateDesktop2().
|
|
Definition at line 3812 of file sertl.c. References FirstAce, NextAce, NULL, and RTL_PAGED_CODE. Referenced by RtlpNewSecurityObject(), and RtlpSetSecurityObject().
|
|
Definition at line 6972 of file sertl.c. References FALSE, RtlpCompareKnownAces(), and RtlpCompareKnownObjectAces(). Referenced by RtlpConvertAclToAutoInherit(), and RtlpIsDuplicateAce().
|
|
Definition at line 7033 of file sertl.c. References AceFlagsInAce, ASSERT, CREATOR_SID_SIZE, CreatorSid, EFFECTIVE_ACE, FALSE, NTSTATUS(), NULL, RTL_PAGED_CODE, RtlBaseAceType, RtlEqualPrefixSid(), RtlEqualSid(), RtlInitializeSid(), RtlIsSystemAceType, RtlLengthRequiredSid(), RtlpVerboseConvert, Status, and TRUE. Referenced by RtlpCompareAces().
|
|
Definition at line 7209 of file sertl.c. References AceFlagsInAce, ASSERT, CREATOR_SID_SIZE, CreatorSid, EFFECTIVE_ACE, FALSE, NTSTATUS(), NULL, RTL_PAGED_CODE, RtlBaseAceType, RtlEqualPrefixSid(), RtlEqualSid(), RtlInitializeSid(), RtlIsSystemAceType, RtlLengthRequiredSid(), RtlpVerboseConvert, Status, and TRUE. Referenced by RtlpCompareAces().
|
|
Definition at line 6266 of file sertl.c. References ExAllocatePoolWithTag, ExFreePool(), HeapHandle, NT_SUCCESS, NTSTATUS(), NULL, PagedPool, RTL_PAGED_CODE, RtlAllocateHeap, RtlFreeHeap, RtlpComputeMergedAcl2(), and Status. Referenced by RtlpSetSecurityObject().
|
|
Definition at line 5893 of file sertl.c. References CopyAllAces, CopyInheritedAces, CopyNonInheritedAces, FALSE, max, NT_SUCCESS, NTSTATUS(), NULL, RTL_PAGED_CODE, RtlCreateAcl(), RtlpCopyAces(), Status, TRUE, and USHORT. Referenced by RtlpComputeMergedAcl().
|
|
Definition at line 7461 of file sertl.c. References AceFlagsInAce, ASSERT, CREATOR_SID_SIZE, CreatorOwnerSid, EFFECTIVE_ACE, ExAllocatePoolWithTag, ExFreePool(), FALSE, FirstAce, _KNOWN_ACE::Header, HeapHandle, MAKE_TAG, _KNOWN_ACE::Mask, max, NextAce, NT_SUCCESS, NTSTATUS(), NULL, PagedPool, RTL_PAGED_CODE, RtlAllocateHeap, RtlBaseAceType, RtlCreateAcl(), RtlFreeHeap, RtlInitializeSid(), RtlLengthRequiredSid(), RtlMapGenericMask(), RtlpCompareAces(), RtlpInheritAcl(), RtlpVerboseConvert, RtlValidAcl(), SE_TAG, Status, and TRUE. Referenced by RtlpConvertToAutoInheritSecurityObject().
|
|
Definition at line 6520 of file sertl.c. References ExAllocatePoolWithTag, ExFreePool(), FALSE, HeapHandle, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, PagedPool, PrimaryToken, RTL_PAGED_CODE, RtlAllocateHeap, RtlCreateSecurityDescriptorRelative(), RtlFreeHeap, RtlpConvertAclToAutoInherit(), RtlValidSecurityDescriptor(), SE_TAG, SeLengthSid, Status, and TRUE. Referenced by RtlConvertToAutoInheritSecurityObject().
|
|
Definition at line 4371 of file sertl.c. References CopyAllAces, CopyInheritedAces, CopyNonInheritedAces, FALSE, FirstAce, NextAce, NTSTATUS(), NULL, RTL_PAGED_CODE, RtlFirstFreeAce(), RtlpCopyEffectiveAce(), Status, and TRUE. Referenced by RtlpComputeMergedAcl2(), and RtlpInheritAcl2().
|
|
Definition at line 3880 of file sertl.c. References ASSERT, CREATOR_SID_SIZE, CreatorSid, FALSE, KNOWN_ACE, NULL, RTL_PAGED_CODE, RtlBaseAceType, RtlEqualPrefixSid(), RtlInitializeSid(), RtlLengthRequiredSid(), SeLengthSid, TRUE, and USHORT. Referenced by RtlpCopyAces(), and RtlpGenerateInheritedAce().
|
|
Definition at line 8588 of file sertl.c. References ASSERT, ExAllocatePoolWithTag, FALSE, FirstAce, KNOWN_ACE, MAKE_TAG, NextAce, NT_SUCCESS, NTSTATUS(), NULL, PagedPool, RTL_PAGED_CODE, RtlAllocateHeap, RtlCreateAcl(), SE_TAG, SeLengthSid, Status, TRUE, and USHORT. Referenced by RtlpNewSecurityObject(), and RtlpSetSecurityObject().
|
|
Definition at line 5722 of file sertl.c. References FALSE, FirstAce, max, NextAce, NT_SUCCESS, NTSTATUS(), RTL_PAGED_CODE, RtlpGenerateInheritedAce(), Status, and TRUE. Referenced by RtlpInheritAcl2().
|
|
Definition at line 5381 of file sertl.c. References ASSERT, CREATOR_SID_SIZE, FALSE, max, NULL, RTL_PAGED_CODE, RtlFirstFreeAce(), RtlLengthRequiredSid(), RtlpCopyEffectiveAce(), RtlpIsDuplicateAce(), and TRUE. Referenced by RtlpGenerateInheritAcl().
|
|
Definition at line 8795 of file sertl.c. References ClientToken, FALSE, HeapHandle, MAKE_TAG, NT_SUCCESS, NtClose(), NtOpenProcessToken(), NtQueryInformationToken(), NTSTATUS(), NULL, PrimaryToken, RtlAllocateHeap, RtlFreeHeap, SE_TAG, Status, and TRUE. Referenced by RtlpNewSecurityObject().
|
|
Definition at line 5153 of file sertl.c. References ExAllocatePoolWithTag, ExFreePool(), HeapHandle, MAKE_TAG, NT_SUCCESS, NTSTATUS(), NULL, PagedPool, RTL_PAGED_CODE, RtlAllocateHeap, RtlFreeHeap, RtlpInheritAcl2(), SE_TAG, and Status. Referenced by RtlpConvertAclToAutoInherit(), RtlpNewSecurityObject(), and SepInheritAcl().
|
|
Definition at line 4716 of file sertl.c. References ACE_TYPE_TO_COPY, CopyAllAces, CopyNonInheritedAces, FALSE, FirstAce, max, NT_SUCCESS, NTSTATUS(), NULL, RTL_PAGED_CODE, RtlCreateAcl(), RtlFirstFreeAce(), RtlpCopyAces(), RtlpGenerateInheritAcl(), Status, TRUE, and USHORT. Referenced by RtlpInheritAcl().
|
|
Definition at line 8362 of file sertl.c. References FALSE, FirstAce, NextAce, NTSTATUS(), NULL, RTL_PAGED_CODE, RtlpCompareAces(), RtlpVerboseConvert, Status, and TRUE. Referenced by RtlpGenerateInheritedAce().
|
|
Definition at line 9057 of file sertl.c. References ExAllocatePoolWithTag, ExFreePool(), FALSE, HeapHandle, KernelMode, KPROCESSOR_MODE, MAKE_TAG, NT_SUCCESS, NtPrivilegeCheck(), NtQueryInformationToken(), NTSTATUS(), NULL, PagedPool, RtlAllocateHeap, RtlCopySid(), RtlCreateSecurityDescriptor(), RtlCreateSecurityDescriptorRelative(), RtlFreeHeap, RtlpApplyAclToObject(), RtlpCreateServerAcl(), RtlpGetDefaultsSubjectContext(), RtlpInheritAcl(), RtlpValidOwnerSubjectContext(), RtlValidSid(), SE_TAG, SeLengthSid, SeLockSubjectContext(), SepGetDefaultsSubjectContext(), SePrivilegeCheck(), SePrivilegedServiceAuditAlarm(), SepValidOwnerSubjectContext(), SeSecurityPrivilege, SeUnlockSubjectContext(), Status, Token, TRUE, and UserMode. Referenced by RtlNewSecurityObject(), RtlNewSecurityObjectEx(), SeAssignSecurity(), and SeAssignSecurityEx().
|
|
Definition at line 10195 of file sertl.c. References ASSERT, ExAllocatePoolWithTag, ExFreePool(), FALSE, HeapHandle, MAKE_TAG, NT_SUCCESS, NtClose(), NtOpenProcessToken(), NtQueryInformationToken(), NTSTATUS(), NULL, ObValidateSecurityQuota(), PrimaryToken, RTL_PAGED_CODE, RtlAllocateHeap, RtlCreateSecurityDescriptorRelative(), RtlFreeHeap, RtlLengthRequiredSid(), RtlpApplyAclToObject(), RtlpComputeMergedAcl(), RtlpCreateServerAcl(), RtlpValidOwnerSubjectContext(), RtlValidSid(), SE_TAG, SeCaptureSubjectContext(), SeLengthSid, SepGetDefaultsSubjectContext(), SepValidOwnerSubjectContext(), SeReleaseSubjectContext(), Status, Token, and TRUE. Referenced by RtlSetSecurityObject(), RtlSetSecurityObjectEx(), SeSetSecurityDescriptorInfo(), and SeSetSecurityDescriptorInfoEx().
|
|
Definition at line 11020 of file sertl.c. References FALSE, Offset, and TRUE. Referenced by RtlValidRelativeSecurityDescriptor().
|
|
Definition at line 3544 of file sertl.c. References FALSE, HeapHandle, Index, NT_SUCCESS, NtClose(), NtOpenProcessToken(), NtPrivilegeCheck(), NtQueryInformationToken(), NTSTATUS(), NULL, Owner, RTL_PAGED_CODE, RtlAllocateHeap, RtlEqualSid(), RtlFreeHeap, Status, Token, and TRUE. Referenced by RtlpNewSecurityObject(), and RtlpSetSecurityObject().
|
|
Definition at line 520 of file sertl.c. References RTL_PAGED_CODE, Seed, and String. Referenced by ECLock().
|
|
Definition at line 388 of file sertl.c. References ASSERT, NT_SUCCESS, NTSTATUS(), RTL_PAGED_CODE, Status, String, and Time. Referenced by ECUnlock().
|
|
Definition at line 2386 of file sertl.c. References RTL_PAGED_CODE, RtlSetControlSecurityDescriptor(), and SE_VALID_CONTROL_BITS.
|
|
Definition at line 2472 of file sertl.c. References SE_VALID_CONTROL_BITS. Referenced by RtlSetAttributesSecurityDescriptor().
|
|
Definition at line 2543 of file sertl.c. References Dacl, NULL, RTL_PAGED_CODE, and TRUE. Referenced by CmpHiveRootSecurityDescriptor(), CreateBSMEventSD(), CreateDAclToken(), CreateSecurityDescriptor(), GenerateDescriptor(), InternalCreateCallbackThread(), IoCreateUnprotectedSymbolicLink(), IopApplySystemPartitionProt(), IopCreateDefaultDeviceSecurityDescriptor(), IopInitializePlugPlayServices(), IopOpenDeviceParametersSubkey(), NtOpenThreadToken(), ObInitSystem(), ObpGetDosDevicesProtection(), RtlCreateAndSetSD(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), SepInitializationPhase1(), SepInitSystemDacls(), SmbTraceStart(), TestSeNamedCreate(), TestSeSecurityDescriptor(), and TestTokenInitialize().
|
|
Definition at line 3135 of file sertl.c. References Group, NULL, and RTL_PAGED_CODE. Referenced by CreateDAclToken(), CreateSecurityDescriptor(), RtlCreateAndSetSD(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), and TestSeSecurityDescriptor().
|
|
Definition at line 2963 of file sertl.c. References NULL, Owner, RTL_PAGED_CODE, and TRUE. Referenced by CreateDAclToken(), CreateSecurityDescriptor(), RtlCreateAndSetSD(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), and TestSeSecurityDescriptor().
|
|
Definition at line 2756 of file sertl.c. References NULL, and RTL_PAGED_CODE. Referenced by CreateDAclToken(), CreateSecurityDescriptor(), ObInitSystem(), RtlCreateAndSetSD(), and TestSeSecurityDescriptor().
|
|
Definition at line 11370 of file sertl.c.
|
|
Definition at line 1316 of file sertl.c. References RTL_PAGED_CODE. Referenced by DisplayAccountSid(), GetMangledSiteSid(), RtlEqualSid(), TestSeAclRtl(), and TSeVariableInitialization().
|
|
Definition at line 1286 of file sertl.c. References RTL_PAGED_CODE. Referenced by CmpHiveRootSecurityDescriptor(), DisplayAccountSid(), GenerateDescriptor(), GetMangledSiteSid(), InitVars(), RtlDefaultNpAcl(), SepVariableInitialization(), TestSeAclRtl(), and TSeVariableInitialization().
|
|
Definition at line 11089 of file sertl.c. References Dacl, FALSE, RtlpValidateSDOffsetAndSize(), RtlValidAcl(), SeLengthSid, and TRUE.
|
|
Definition at line 2066 of file sertl.c. References Dacl, EXCEPTION_EXECUTE_HANDLER, FALSE, Group, NULL, Owner, RTL_PAGED_CODE, RtlValidAcl(), RtlValidSid(), and TRUE. Referenced by IopInitializePlugPlayServices(), IopOpenDeviceParametersSubkey(), ObpReferenceSecurityDescriptor(), RtlpConvertToAutoInheritSecurityObject(), and TestSeSecurityDescriptor().
|
|
Definition at line 810 of file sertl.c. References EXCEPTION_EXECUTE_HANDLER, FALSE, NULL, ProbeAndReadUlongUM, RTL_PAGED_CODE, and TRUE. Referenced by CmpHiveRootSecurityDescriptor(), GenerateDescriptor(), IoCheckQuotaBufferValidity(), IopCheckGetQuotaBufferValidity(), NtQueryQuotaInformationFile(), RtlAddCompoundAce(), RtlConvertSidToUnicodeString(), RtlLengthSidAsUnicodeString(), RtlpAddKnownAce(), RtlpAddKnownObjectAce(), RtlpNewSecurityObject(), RtlpSetSecurityObject(), RtlValidSecurityDescriptor(), SeCaptureSecurityDescriptor(), SeCaptureSid(), SeCaptureSidAndAttributesArray(), and TestSeSid().
|
|
Initial value:
Definition at line 340 of file sertl.c. Referenced by RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), RtlpConvertAclToAutoInherit(), and RtlpCopyEffectiveAce(). |
|
Initial value: Definition at line 356 of file sertl.c. Referenced by RtlpCompareKnownAces(), and RtlpCompareKnownObjectAces(). |
|
Definition at line 368 of file sertl.c. Referenced by RtlpCompareKnownAces(), RtlpCompareKnownObjectAces(), RtlpConvertAclToAutoInherit(), and RtlpIsDuplicateAce(). |