Go to the source code of this file.
|
BOOL WINAPI | ConvertSidToStringSidA (PSID, LPSTR *) |
|
BOOL WINAPI | ConvertSidToStringSidW (PSID, LPWSTR *) |
|
BOOL WINAPI | ConvertStringSidToSidA (LPCSTR, PSID *) |
|
BOOL WINAPI | ConvertStringSidToSidW (LPCWSTR, PSID *) |
|
BOOL WINAPI | ConvertStringSecurityDescriptorToSecurityDescriptorA (LPCSTR, DWORD, PSECURITY_DESCRIPTOR *, PULONG) |
|
BOOL WINAPI | ConvertStringSecurityDescriptorToSecurityDescriptorW (LPCWSTR, DWORD, PSECURITY_DESCRIPTOR *, PULONG) |
|
BOOL WINAPI | ConvertSecurityDescriptorToStringSecurityDescriptorA (PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPSTR *, PULONG) |
|
BOOL WINAPI | ConvertSecurityDescriptorToStringSecurityDescriptorW (PSECURITY_DESCRIPTOR, DWORD, SECURITY_INFORMATION, LPWSTR *, PULONG) |
|
◆ ConvertSecurityDescriptorToStringSecurityDescriptor
◆ ConvertSidToStringSid
◆ ConvertStringSecurityDescriptorToSecurityDescriptor
◆ ConvertStringSidToSid
◆ SDDL_ACCOUNT_OPERATORS
◆ SDDL_ACE_BEGIN
◆ SDDL_ACE_BEGINC
◆ SDDL_ACE_END
◆ SDDL_ACE_ENDC
◆ SDDL_ALIAS_PREW2KCOMPACC
◆ SDDL_ALIAS_SIZE
◆ SDDL_ANONYMOUS
◆ SDDL_AUTHENTICATED_USERS
◆ SDDL_AUTO_INHERIT_REQ
◆ SDDL_AUTO_INHERITED
◆ SDDL_BACKUP_OPERATORS
◆ SDDL_BUILTIN_ADMINISTRATORS
◆ SDDL_BUILTIN_GUESTS
◆ SDDL_BUILTIN_USERS
◆ SDDL_CERT_SERV_ADMINISTRATORS
◆ SDDL_CONTROL_ACCESS
◆ SDDL_CREATE_CHILD
◆ SDDL_CREATOR_GROUP
◆ SDDL_CREATOR_OWNER
◆ SDDL_DACL
◆ SDDL_DELETE_CHILD
◆ SDDL_DELETE_TREE
◆ SDDL_DELIMINATOR
◆ SDDL_DELIMINATORC
◆ SDDL_DOMAIN_ADMINISTRATORS
◆ SDDL_DOMAIN_COMPUTERS
◆ SDDL_DOMAIN_DOMAIN_CONTROLLERS
◆ SDDL_DOMAIN_GUESTS
◆ SDDL_DOMAIN_USERS
◆ SDDL_ENTERPRISE_ADMINS
◆ SDDL_ENTERPRISE_DOMAIN_CONTROLLERS
#define SDDL_ENTERPRISE_DOMAIN_CONTROLLERS TEXT("ED") |
◆ SDDL_EVERYONE
◆ SDDL_FILE_ALL
◆ SDDL_FILE_EXECUTE
◆ SDDL_FILE_READ
◆ SDDL_FILE_WRITE
◆ SDDL_GENERIC_ALL
◆ SDDL_GENERIC_EXECUTE
◆ SDDL_GENERIC_READ
◆ SDDL_GENERIC_WRITE
◆ SDDL_GROUP
◆ SDDL_GROUP_POLICY_ADMINS
◆ SDDL_INTERACTIVE
◆ SDDL_KEY_ALL
◆ SDDL_KEY_EXECUTE
◆ SDDL_KEY_READ
◆ SDDL_KEY_WRITE
◆ SDDL_LIST_CHILDREN
◆ SDDL_LIST_OBJECT
◆ SDDL_LOCAL_ADMIN
◆ SDDL_LOCAL_GUEST
◆ SDDL_LOCAL_SERVICE
◆ SDDL_LOCAL_SYSTEM
◆ SDDL_NETWORK
◆ SDDL_NETWORK_CONFIGURATION_OPS
◆ SDDL_NETWORK_SERVICE
◆ SDDL_OWNER
◆ SDDL_PERFLOG_USERS
◆ SDDL_PERFMON_USERS
◆ SDDL_PERSONAL_SELF
◆ SDDL_POWER_USERS
◆ SDDL_PRINTER_OPERATORS
◆ SDDL_PROTECTED
◆ SDDL_RAS_SERVERS
◆ SDDL_READ_CONTROL
◆ SDDL_READ_PROPERTY
◆ SDDL_REMOTE_DESKTOP
◆ SDDL_REPLICATOR
◆ SDDL_RESTRICTED_CODE
◆ SDDL_REVISION
◆ SDDL_REVISION_1
◆ SDDL_SACL
◆ SDDL_SCHEMA_ADMINISTRATORS
◆ SDDL_SELF_WRITE
◆ SDDL_SEPERATOR
◆ SDDL_SEPERATORC
◆ SDDL_SERVER_OPERATORS
◆ SDDL_SERVICE
◆ SDDL_STANDARD_DELETE
◆ SDDL_WRITE_DAC
◆ SDDL_WRITE_OWNER
◆ SDDL_WRITE_PROPERTY
◆ ConvertSecurityDescriptorToStringSecurityDescriptorA()
Definition at line 3499 of file security.c.
3500{
3504 {
3505 int lenA;
3506
3509#ifdef __REACTOS__
3510 if (*OutputString ==
NULL)
3511 {
3513 *OutputLen = 0;
3515 }
3516#endif
3519
3520 if (OutputLen !=
NULL)
3521 *OutputLen = lenA;
3523 }
3524 else
3525 {
3526 *OutputString =
NULL;
3527 if (OutputLen)
3528 *OutputLen = 0;
3530 }
3531}
static void * heap_alloc(size_t len)
BOOL WINAPI ConvertSecurityDescriptorToStringSecurityDescriptorW(PSECURITY_DESCRIPTOR SecurityDescriptor, DWORD SDRevision, SECURITY_INFORMATION RequestedInformation, LPWSTR *OutputString, PULONG OutputLen)
#define WideCharToMultiByte
HLOCAL NTAPI LocalFree(HLOCAL hMem)
_In_ WDFREQUEST _In_ NTSTATUS _In_ ULONG_PTR Information
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
◆ ConvertSecurityDescriptorToStringSecurityDescriptorW()
Definition at line 3435 of file security.c.
3436{
3439
3441 {
3442 ERR(
"Program requested unknown SDDL revision %d\n", SDRevision);
3445 }
3446
3460
3462#ifdef __REACTOS__
3465#endif
3466
3471 }
3476 }
3481 }
3486 }
3487 *wptr = 0;
3488
3490 *OutputString = wstr;
3491 if (OutputLen)
3492 *OutputLen =
strlenW(*OutputString)+1;
3494}
static BOOL DumpSacl(PSECURITY_DESCRIPTOR SecurityDescriptor, WCHAR **pwptr, ULONG *plen)
static BOOL DumpGroup(PSECURITY_DESCRIPTOR SecurityDescriptor, WCHAR **pwptr, ULONG *plen)
static BOOL DumpOwner(PSECURITY_DESCRIPTOR SecurityDescriptor, WCHAR **pwptr, ULONG *plen)
static BOOL DumpDacl(PSECURITY_DESCRIPTOR SecurityDescriptor, WCHAR **pwptr, ULONG *plen)
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
#define ERROR_UNKNOWN_REVISION
#define DACL_SECURITY_INFORMATION
#define OWNER_SECURITY_INFORMATION
#define GROUP_SECURITY_INFORMATION
#define SACL_SECURITY_INFORMATION
Referenced by ConvertSecurityDescriptorToStringSecurityDescriptorA().
◆ ConvertSidToStringSidA()
Definition at line 3637 of file security.c.
3639{
3642
3644 {
3646 }
3647
3650 {
3654 }
3655
3657 if (
NULL == *StringSid)
3658 {
3662 }
3663
3665 {
3669 }
3670
3672
3674}
#define ERROR_NOT_ENOUGH_MEMORY
BOOL WINAPI ConvertSidToStringSidW(PSID Sid, LPWSTR *StringSid)
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Referenced by debugstr_sid(), get_user_sid(), map_name_2_sid(), test_CreateWellKnownSid(), test_LookupAccountSid(), test_lsa(), test_sid(), test_sid_str(), test_token_attr(), and test_token_label().
◆ ConvertSidToStringSidW()
Definition at line 3583 of file security.c.
3585{
3588 WCHAR FixedBuffer[64];
3589
3591 {
3594 }
3595
3601 {
3603 }
3604
3606 {
3609 }
3610
3612 if (
NULL == *StringSid)
3613 {
3615 {
3617 }
3620 }
3621
3625 {
3627 }
3628
3630}
#define NT_SUCCESS(StatCode)
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSYSAPI BOOLEAN NTAPI RtlValidSid(IN PSID Sid)
NTSYSAPI VOID NTAPI RtlFreeUnicodeString(PUNICODE_STRING UnicodeString)
NTSYSAPI NTSTATUS NTAPI RtlConvertSidToUnicodeString(OUT PUNICODE_STRING DestinationString, IN PVOID Sid, IN BOOLEAN AllocateDestinationString)
#define STATUS_BUFFER_TOO_SMALL
#define ERROR_INVALID_SID
Referenced by _GetUserSidStringFromToken(), AddUserProfiles(), ConvertSidToStringSidA(), CreateUserProfileExW(), get_user_sid(), GetEventUserName(), GetPrincipalDisplayString(), RecycleBin5::Init(), LsapGetDomainInfo(), LsapLookupAccountDomainSids(), LsapLookupBuiltinDomainSids(), LsapLookupWellKnownSids(), MsiSourceListAddSourceW(), SampAddMemberToAlias(), SampRemoveMemberFromAlias(), SampRemoveMemberFromAllAliases(), SampSetupAddMemberToAlias(), set_user_sid_prop(), START_TEST(), UpdatePrincipalInfo(), WhoamiGroups(), WhoamiLogonId(), and WhoamiUser().
◆ ConvertStringSecurityDescriptorToSecurityDescriptorA()
Definition at line 3032 of file security.c.
3036{
3039 LPWSTR StringSecurityDescriptorW;
3040
3043
3044 if (StringSecurityDescriptorW)
3045 {
3047
3050 SecurityDescriptorSize);
3052 }
3053
3055}
BOOL WINAPI ConvertStringSecurityDescriptorToSecurityDescriptorW(LPCWSTR StringSecurityDescriptor, DWORD StringSDRevision, PSECURITY_DESCRIPTOR *SecurityDescriptor, PULONG SecurityDescriptorSize)
#define HeapFree(x, y, z)
#define MultiByteToWideChar
Referenced by test_profile_directory_readonly().
◆ ConvertStringSecurityDescriptorToSecurityDescriptorW()
Definition at line 3062 of file security.c.
3066{
3070
3072
3074 {
3076 goto lend;
3077 }
3079 {
3081 goto lend;
3082 }
3084 {
3086 goto lend;
3087 }
3088
3089
3092 goto lend;
3093
3095 if (!psd) goto lend;
3096
3099
3102 {
3104 goto lend;
3105 }
3106
3107 if (SecurityDescriptorSize)
3108 *SecurityDescriptorSize = cBytes;
3109
3111
3112lend:
3113 TRACE(
" ret=%d\n", bret);
3114 return bret;
3115}
static BOOL ParseStringSecurityDescriptorToSecurityDescriptor(LPCWSTR StringSecurityDescriptor, SECURITY_DESCRIPTOR_RELATIVE *SecurityDescriptor, LPDWORD cBytes)
#define ERROR_CALL_NOT_IMPLEMENTED
#define ERROR_INVALID_PARAMETER
DWORD WINAPI GetVersion()
Referenced by ConvertStringSecurityDescriptorToSecurityDescriptorA(), InstallOneService(), registry_callback(), and SetupQueueCopyIndirectW().
◆ ConvertStringSidToSidA()
Definition at line 3560 of file security.c.
3561{
3563
3567 else if (!StringSid || !
Sid)
3569 else
3570 {
3574 }
3575 return bret;
3576}
static BOOL heap_free(void *mem)
BOOL WINAPI ConvertStringSidToSidW(LPCWSTR StringSid, PSID *Sid)
static LPWSTR SERV_dup(LPCSTR str)
Referenced by test_LsaLookupSids().
◆ ConvertStringSidToSidW()
Definition at line 3536 of file security.c.
3537{
3540
3544 else if (!StringSid || !
Sid)
3547 {
3549
3551 if (!bret)
3553 }
3554 return bret;
3555}
static BOOL ParseStringSidToSid(LPCWSTR StringSid, PSID pSid, LPDWORD cBytes)
Referenced by ConvertStringSidToSidA(), and fill_sid().