132 ulLength =
sizeof(
ACL) +
162 ulLength =
sizeof(
ACL) +
179 ulLength =
sizeof(
ACL) +
324 DWORD dwBufferLength = 0;
338 DPRINT(
"BufferLength %lu\n", dwBufferLength);
343 if (pRelativeSD ==
NULL)
348 DPRINT(
"pRelativeSD %p\n", pRelativeSD);
359 *ppSecurityDescriptor = pRelativeSD;
364 if (pRelativeSD !=
NULL)
static DWORD ScmCreatePipeSD(VOID)
static DWORD ScmCreateSids(VOID)
VOID ScmShutdownSecurity(VOID)
static DWORD ScmCreateAcls(VOID)
static PSID pAuthenticatedUserSid
static VOID ScmFreePipeSD(VOID)
static VOID ScmFreeAcls(VOID)
static PSID pAliasAdminsSid
static VOID ScmFreeDefaultSD(VOID)
static VOID ScmFreeSids(VOID)
DWORD ScmInitializeSecurity(VOID)
PSECURITY_DESCRIPTOR pPipeSD
static DWORD ScmCreateDefaultSD(VOID)
static PSECURITY_DESCRIPTOR pDefaultSD
static PSID pLocalSystemSid
DWORD ScmCreateDefaultServiceSD(PSECURITY_DESCRIPTOR *ppSecurityDescriptor)
static SID_IDENTIFIER_AUTHORITY NtAuthority
PVOID NTAPI RtlAllocateHeap(IN PVOID HeapHandle, IN ULONG Flags, IN SIZE_T Size)
BOOLEAN NTAPI RtlFreeHeap(IN PVOID HeapHandle, IN ULONG Flags, IN PVOID HeapBase)
#define NT_SUCCESS(StatCode)
static SID_IDENTIFIER_AUTHORITY WorldAuthority
NTSYSAPI NTSTATUS WINAPI RtlAddAccessAllowedAce(PACL, DWORD, DWORD, PSID)
NTSYSAPI NTSTATUS WINAPI RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR, PSID, BOOLEAN)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSYSAPI NTSTATUS WINAPI RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR, BOOLEAN, PACL, BOOLEAN)
NTSYSAPI PULONG NTAPI RtlSubAuthoritySid(_In_ PSID Sid, _In_ ULONG SubAuthority)
NTSYSAPI ULONG NTAPI RtlLengthRequiredSid(IN ULONG SubAuthorityCount)
NTSYSAPI NTSTATUS NTAPI RtlCreateAcl(PACL Acl, ULONG AclSize, ULONG AclRevision)
NTSYSAPI NTSTATUS NTAPI RtlAddAuditAccessAce(_Inout_ PACL Acl, _In_ ULONG Revision, _In_ ACCESS_MASK AccessMask, _In_ PSID Sid, _In_ BOOLEAN Success, _In_ BOOLEAN Failure)
NTSYSAPI ULONG NTAPI RtlLengthSid(IN PSID Sid)
NTSYSAPI NTSTATUS NTAPI RtlCreateSecurityDescriptor(_Out_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ ULONG Revision)
NTSYSAPI NTSTATUS NTAPI RtlSetGroupSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSID Group, IN BOOLEAN GroupDefaulted)
NTSYSAPI NTSTATUS NTAPI RtlSetSaclSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN BOOLEAN SaclPresent, IN PACL Sacl, IN BOOLEAN SaclDefaulted)
NTSYSAPI NTSTATUS NTAPI RtlAbsoluteToSelfRelativeSD(IN PSECURITY_DESCRIPTOR AbsoluteSecurityDescriptor, IN OUT PSECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor, IN PULONG BufferLength)
NTSYSAPI NTSTATUS NTAPI RtlInitializeSid(IN OUT PSID Sid, IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount)
#define STATUS_BUFFER_TOO_SMALL
#define SERVICE_QUERY_STATUS
#define SERVICE_USER_DEFINED_CONTROL
#define SERVICE_ALL_ACCESS
#define SERVICE_PAUSE_CONTINUE
#define SERVICE_INTERROGATE
#define SERVICE_ENUMERATE_DEPENDENTS
#define SERVICE_QUERY_CONFIG
#define SECURITY_BUILTIN_DOMAIN_RID
#define SECURITY_WORLD_SID_AUTHORITY
#define SECURITY_WORLD_RID
#define SECURITY_LOCAL_SYSTEM_RID
#define SECURITY_AUTHENTICATED_USER_RID
#define SECURITY_NULL_RID
#define SECURITY_NT_AUTHORITY
#define SECURITY_DESCRIPTOR_REVISION
#define SECURITY_NULL_SID_AUTHORITY
#define DOMAIN_ALIAS_RID_ADMINS