#include "tsecomm.c"
Go to the source code of this file.
Classes | |
struct | _STANDARD_ACE |
Defines | |
#define | FirstAce(Acl) ((PVOID)((PUCHAR)(Acl) + sizeof(ACL))) |
#define | NextAce(Ace) ((PVOID)((PUCHAR)(Ace) + ((PACE_HEADER)(Ace))->AceSize)) |
#define | DEFAULT_DACL_LENGTH (1024L) |
#define | GROUP_IDS_LENGTH (1024L) |
#define | NEW_GROUP_STATE_LENGTH (1024L) |
#define | PRIVILEGES_LENGTH (128L) |
#define | TOO_BIG_ACL_SIZE (2048L) |
#define | FLINTSTONE_INDEX (0L) |
#define | CHILD_INDEX (1L) |
#define | NEANDERTHOL_INDEX (2L) |
#define | WORLD_INDEX (3L) |
#define | GROUP_COUNT (4L) |
#define | UNSOLICITED_INDEX (0L) |
#define | SECURITY_INDEX (1L) |
#define | PRIVILEGE_COUNT (2L) |
#define | SET_WIDGET_COLOR 0x00000001 |
#define | SET_WIDGET_SIZE 0x00000002 |
#define | GET_WIDGET_COLOR 0x00000004 |
#define | GET_WIDGET_SIZE 0x00000008 |
#define | START_WIDGET 0x00000010 |
#define | STOP_WIDGET 0x00000020 |
#define | GIVE_WIDGET 0x00000040 |
#define | TAKE_WIDGET 0x00000080 |
Typedefs | |
typedef _STANDARD_ACE | STANDARD_ACE |
typedef STANDARD_ACE * | PSTANDARD_ACE |
Functions | |
VOID | DumpAcl (IN PACL Acl) |
BOOLEAN | TestTokenInitialize () |
BOOLEAN | CreateDAclToken () |
BOOLEAN | CTAccess () |
Variables | |
NTSTATUS | Status |
HANDLE | SimpleToken |
HANDLE | TokenWithGroups |
HANDLE | TokenWithDefaultOwner |
HANDLE | TokenWithPrivileges |
HANDLE | TokenWithDefaultDacl |
HANDLE | Token |
HANDLE | ImpersonationToken |
HANDLE | PrimaryToken |
HANDLE | AnonymousToken |
OBJECT_ATTRIBUTES | PrimaryTokenAttributes |
PSECURITY_DESCRIPTOR | PrimarySecurityDescriptor |
SECURITY_QUALITY_OF_SERVICE | PrimarySecurityQos |
OBJECT_ATTRIBUTES | ImpersonationTokenAttributes |
PSECURITY_DESCRIPTOR | ImpersonationSecurityDescriptor |
SECURITY_QUALITY_OF_SERVICE | ImpersonationSecurityQos |
OBJECT_ATTRIBUTES | AnonymousTokenAttributes |
PSECURITY_DESCRIPTOR | AnonymousSecurityDescriptor |
SECURITY_QUALITY_OF_SERVICE | AnonymousSecurityQos |
ULONG | DisabledGroupAttributes |
ULONG | OptionalGroupAttributes |
ULONG | NormalGroupAttributes |
ULONG | OwnerGroupAttributes |
ULONG | LengthAvailable |
ULONG | CurrentLength |
TIME_FIELDS | TempTimeFields = {3000, 1, 1, 1, 1, 1, 1, 1} |
LARGE_INTEGER | NoExpiration |
LUID | DummyAuthenticationId |
LUID | SystemAuthenticationId = SYSTEM_LUID |
TOKEN_SOURCE | TestSource = {"SE: TEST", 0} |
PSID | Owner |
PSID | Group |
PACL | Dacl |
PSID | TempOwner |
PSID | TempGroup |
PACL | TempDacl |
|
Definition at line 87 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), and TestTokenQuery(). |
|
Definition at line 76 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAssignPrimary(), and TestTokenCreate(). |
|
Definition at line 51 of file ctaccess.c. |
|
Definition at line 86 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), and TestTokenQuery(). |
|
Definition at line 107 of file ctaccess.c. |
|
Definition at line 108 of file ctaccess.c. |
|
Definition at line 111 of file ctaccess.c. |
|
Definition at line 90 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenQuery(). |
|
Definition at line 77 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenFilter(). |
|
Definition at line 88 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenQuery(). |
|
Definition at line 78 of file ctaccess.c. |
|
Definition at line 63 of file ctaccess.c. |
|
Definition at line 99 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustPrivileges(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenQuery(). |
|
Definition at line 79 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenFilter(). |
|
Definition at line 98 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustPrivileges(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), and TestTokenQuery(). |
|
Definition at line 105 of file ctaccess.c. Referenced by CreateDAclToken(). |
|
Definition at line 106 of file ctaccess.c. Referenced by CreateDAclToken(). |
|
Definition at line 109 of file ctaccess.c. |
|
Definition at line 110 of file ctaccess.c. |
|
Definition at line 112 of file ctaccess.c. |
|
Definition at line 80 of file ctaccess.c. Referenced by TestTokenSet(). |
|
Definition at line 97 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustPrivileges(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), and TestTokenQuery(). |
|
Definition at line 89 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenQuery(). |
|
Definition at line 1134 of file ctaccess.c. |
|
Referenced by main(), and TestAddAce(). |
|
Definition at line 299 of file ctaccess.c. References ASSERT, BarneySid, CHILD_INDEX, ChildSid, Dacl, DbgPrint, DEFAULT_DACL_LENGTH, DummyAuthenticationId, DumpAcl(), FALSE, FLINTSTONE_INDEX, FlintstoneSid, FredSid, GROUP_COUNT, GROUP_IDS_LENGTH, ImpersonationToken, ImpersonationTokenAttributes, NEANDERTHOL_INDEX, NeandertholSid, NoExpiration, NormalGroupAttributes, NT_SUCCESS, NtAccessCheck(), NtCreateToken(), NtSetInformationProcess(), NtSetInformationThread(), NTSTATUS(), NULL, OptionalGroupAttributes, Owner, OwnerGroupAttributes, PagedPool, PebblesSid, PrimaryToken, PrimaryTokenAttributes, PRIVILEGE_COUNT, PRIVILEGES_LENGTH, RtlAddAce(), RtlCopySid(), RtlCreateAcl(), RtlCreateSecurityDescriptor(), RtlDeleteAce(), RtlSetDaclSecurityDescriptor(), RtlSetGroupSecurityDescriptor(), RtlSetOwnerSecurityDescriptor(), RtlSetSaclSecurityDescriptor(), SECURITY_INDEX, SecurityPrivilege, SeLengthSid, SET_WIDGET_COLOR, SET_WIDGET_SIZE, Status, TestSource, TRUE, UNSOLICITED_INDEX, UnsolicitedInputPrivilege, USHORT, WORLD_INDEX, and WorldSid. Referenced by CTAccess().
|
|
Definition at line 1107 of file ctaccess.c. References CreateDAclToken(), DbgPrint, FALSE, TestTokenInitialize(), TRUE, and TSeVariableInitialization(). Referenced by Test().
|
|
Definition at line 1139 of file ctaccess.c. References DbgPrint, FirstAce, NextAce, NULL, and PSTANDARD_ACE. Referenced by CreateDAclToken().
|
|
Definition at line 178 of file ctaccess.c. References AnonymousSecurityDescriptor, AnonymousSecurityQos, AnonymousTokenAttributes, Dacl, DbgPrint, DisabledGroupAttributes, DummyAuthenticationId, FALSE, ImpersonationSecurityDescriptor, ImpersonationSecurityQos, ImpersonationTokenAttributes, NoExpiration, NormalGroupAttributes, NtAllocateLocallyUniqueId(), NULL, OptionalGroupAttributes, OwnerGroupAttributes, PagedPool, PrimarySecurityDescriptor, PrimaryTokenAttributes, RtlTimeFieldsToTime(), TempTimeFields, TestSource, TRUE, and TSeVariableInitialization(). Referenced by CTAccess(), CTToken(), and TestTokenInitialize().
|
|
Definition at line 139 of file ctaccess.c. Referenced by TestTokenInitialize(). |
|
Definition at line 140 of file ctaccess.c. Referenced by TestTokenInitialize(). |
|
Definition at line 128 of file ctaccess.c. Referenced by TestTokenCreate(), and TestTokenImpersonation(). |
|
Definition at line 138 of file ctaccess.c. Referenced by TestTokenCreate(), and TestTokenInitialize(). |
|
Definition at line 148 of file ctaccess.c. Referenced by LowTraverseChildren(), NtSetInformationToken(), and TestTokenSet(). |
|
|
Definition at line 142 of file ctaccess.c. Referenced by TestTokenAdjustGroups(), and TestTokenInitialize(). |
|
Definition at line 154 of file ctaccess.c. Referenced by CreateDAclToken(), and TestTokenInitialize(). |
|
|
Definition at line 135 of file ctaccess.c. Referenced by TestTokenInitialize(). |
|
Definition at line 136 of file ctaccess.c. Referenced by TestTokenInitialize(). |
|
Definition at line 124 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenCreate(), TestTokenDuplicate(), and TestTokenImpersonation(). |
|
Definition at line 134 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenInitialize(). |
|
Definition at line 147 of file ctaccess.c. Referenced by TestTokenSet(). |
|
Definition at line 152 of file ctaccess.c. Referenced by CreateDAclToken(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenInitialize(). |
|
Definition at line 144 of file ctaccess.c. Referenced by CreateDAclToken(), SeMakeAnonymousLogonToken(), SeMakeSystemToken(), TestSeSid(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenInitialize(), and TestTokenQuery(). |
|
Definition at line 143 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), TestTokenInitialize(), and TestTokenQuery(). |
|
|
Definition at line 145 of file ctaccess.c. Referenced by CreateDAclToken(), SeMakeSystemToken(), TestSeSid(), TestTokenAdjustGroups(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenFilter(), TestTokenInitialize(), and TestTokenQuery(). |
|
Definition at line 131 of file ctaccess.c. Referenced by TestTokenInitialize(). |
|
Definition at line 132 of file ctaccess.c. |
|
|
Definition at line 130 of file ctaccess.c. Referenced by CreateDAclToken(), SeSubProcessToken(), TestTokenAssignPrimary(), TestTokenCreate(), and TestTokenInitialize(). |
|
Definition at line 117 of file ctaccess.c. Referenced by TestTokenAdjustGroups(), TestTokenAdjustPrivileges(), TestTokenCreate(), TestTokenDuplicate(), and TestTokenQuery(). |
|
Definition at line 115 of file ctaccess.c. |
|
Definition at line 155 of file ctaccess.c. Referenced by DisplaySecurityContext(), TestTokenAssignPrimary(), and TestTokenCreate(). |
|
Definition at line 165 of file ctaccess.c. |
|
Definition at line 164 of file ctaccess.c. |
|
Definition at line 163 of file ctaccess.c. |
|
Definition at line 151 of file ctaccess.c. Referenced by TestTokenInitialize(). |
|
Definition at line 157 of file ctaccess.c. Referenced by CreateDAclToken(), TestTokenAssignPrimary(), TestTokenCreate(), TestTokenInitialize(), and TestTokenQuery(). |
|
|
Definition at line 121 of file ctaccess.c. Referenced by TestTokenCreate(), and TestTokenQuery(). |
|
Definition at line 119 of file ctaccess.c. Referenced by TestTokenCreate(), and TestTokenQuery(). |
|
Definition at line 118 of file ctaccess.c. Referenced by TestTokenAdjustGroups(), TestTokenCreate(), TestTokenFilter(), TestTokenImpersonation(), TestTokenQuery(), and TestTokenSet(). |
|
Definition at line 120 of file ctaccess.c. Referenced by TestTokenAdjustPrivileges(), TestTokenCreate(), TestTokenFilter(), and TestTokenQuery(). |