#include "cmp.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
Go to the source code of this file.
Classes | |
struct | _KNOWN_ACE |
Defines | |
#define | WORK_SIZE 1024 |
#define | FirstAce(Acl) ((PVOID)((PUCHAR)(Acl) + sizeof(ACL))) |
#define | NextAce(Ace) ((PVOID)((PUCHAR)(Ace) + ((PACE_HEADER)(Ace))->AceSize)) |
Typedefs | |
typedef _KNOWN_ACE | KNOWN_ACE |
typedef _KNOWN_ACE * | PKNOWN_ACE |
Functions | |
VOID | InitVars () |
VOID | PrintAcl (IN PACL Acl) |
VOID | PrintAccessMask (IN ACCESS_MASK AccessMask) |
void __cdecl | main (int, char *) |
void | processargs () |
void | print (PUNICODE_STRING) |
void | DumpSecurity (HANDLE Handle) |
void | Dump (HANDLE Handle) |
void __cdecl | main (int argc, char *argv[]) |
void | processargs (int argc, char *argv[]) |
BOOLEAN | SidTranslation (PSID Sid, PSTRING AccountName) |
VOID | DisplayAccountSid (PSID Sid) |
Variables | |
UNICODE_STRING | WorkName |
WCHAR | workbuffer [WORK_SIZE] |
PSID | NullSid |
PSID | WorldSid |
PSID | LocalSid |
PSID | CreatorOwnerSid |
PSID | NtAuthoritySid |
PSID | DialupSid |
PSID | NetworkSid |
PSID | BatchSid |
PSID | InteractiveSid |
PSID | LocalSystemSid |
|
|
|
Definition at line 47 of file rtdmpsec.c. |
|
Referenced by RtlpCopyEffectiveAce(), RtlpCreateServerAcl(), and RtlValidAcl(). |
|
Referenced by PrintAcl(), and RtlValidAcl(). |
|
Definition at line 447 of file rtdmpsec.c. References Buffer, RtlIdentifierAuthoritySid(), RtlSubAuthorityCountSid(), RtlSubAuthoritySid(), SidTranslation(), and USHORT.
|
|
|
|
Definition at line 283 of file rtdmpsec.c. References Dacl, exit, Handle, NT_SUCCESS, NtQuerySecurityObject(), NTSTATUS(), NULL, PrintAcl(), RtlGetDaclSecurityDescriptor(), and Status.
|
|
Definition at line 511 of file rtdmpsec.c. References BatchSid, CreatorOwnerSid, DialupSid, InteractiveSid, LocalSid, LocalSystemSid, NetworkSid, NtAuthoritySid, NullSid, RtlInitializeSid(), RtlLengthRequiredSid(), RtlSubAuthoritySid(), and WorldSid. Referenced by main().
|
|
Definition at line 126 of file rtdmpsec.c. References Dump(), exit, InitVars(), L, NT_SUCCESS, NtOpenKey(), NTSTATUS(), NULL, ObjectAttributes, processargs(), WORK_SIZE, workbuffer, and WorkName.
|
|
|
|
Referenced by Dump(), and DumpValues(). |
|
Definition at line 722 of file rtdmpsec.c. Referenced by PrintAcl().
|
|
Definition at line 585 of file rtdmpsec.c. References DisplayAccountSid(), FALSE, FirstAce, NextAce, NULL, PKNOWN_ACE, PrintAccessMask(), and TRUE. Referenced by DumpSecurity().
|
|
Definition at line 360 of file rtdmpsec.c. References exit, FALSE, RtlAnsiStringToUnicodeString(), RtlInitAnsiString(), and WorkName.
|
|
|
|
Definition at line 390 of file rtdmpsec.c. References BatchSid, FALSE, InteractiveSid, LocalSid, LocalSystemSid, NetworkSid, RtlEqualSid(), RtlInitString(), TRUE, and WorldSid. Referenced by DisplayAccountSid().
|
|
Definition at line 121 of file rtdmpsec.c. Referenced by InitVars(), SidTranslation(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 111 of file rtdmpsec.c. Referenced by InitVars(), and RtlpConvertAclToAutoInherit(). |
|
Definition at line 119 of file rtdmpsec.c. Referenced by InitVars(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 122 of file rtdmpsec.c. Referenced by InitVars(), SidTranslation(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 110 of file rtdmpsec.c. Referenced by InitVars(), SidTranslation(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 123 of file rtdmpsec.c. Referenced by InitVars(), SidTranslation(), TestSeSid(), TestTokenAssignPrimary(), and TSeVariableInitialization(). |
|
Definition at line 120 of file rtdmpsec.c. Referenced by InitVars(), SidTranslation(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 117 of file rtdmpsec.c. Referenced by InitVars(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 108 of file rtdmpsec.c. Referenced by InitVars(), TestSeSid(), and TSeVariableInitialization(). |
|
Definition at line 102 of file rtdmpsec.c. |
|
Definition at line 101 of file rtdmpsec.c. |
|
Definition at line 109 of file rtdmpsec.c. Referenced by CmpHiveRootSecurityDescriptor(), CreateBSMEventSD(), CreateDAclToken(), GenerateDescriptor(), InitVars(), SidTranslation(), TestSeSid(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), TestTokenQuery(), and TSeVariableInitialization(). |