FreeRDP
|
Data Structures | |
struct | LUID_AND_ATTRIBUTES |
struct | SID_IDENTIFIER_AUTHORITY |
struct | SID |
struct | SID_AND_ATTRIBUTES |
struct | SID_AND_ATTRIBUTES_HASH |
struct | TOKEN_USER |
struct | TOKEN_GROUPS |
struct | TOKEN_PRIVILEGES |
struct | TOKEN_OWNER |
struct | TOKEN_PRIMARY_GROUP |
struct | TOKEN_DEFAULT_DACL |
struct | TOKEN_USER_CLAIMS |
struct | TOKEN_DEVICE_CLAIMS |
struct | TOKEN_GROUPS_AND_PRIVILEGES |
struct | TOKEN_LINKED_TOKEN |
struct | TOKEN_ELEVATION |
struct | TOKEN_MANDATORY_LABEL |
struct | TOKEN_MANDATORY_POLICY |
struct | TOKEN_ACCESS_INFORMATION |
struct | TOKEN_AUDIT_POLICY |
struct | TOKEN_SOURCE |
struct | TOKEN_STATISTICS |
struct | TOKEN_CONTROL |
struct | TOKEN_ORIGIN |
struct | TOKEN_APPCONTAINER_INFORMATION |
Functions | |
WINPR_API BOOL | InitializeSecurityDescriptor (PSECURITY_DESCRIPTOR pSecurityDescriptor, DWORD dwRevision) |
WINPR_API DWORD | GetSecurityDescriptorLength (PSECURITY_DESCRIPTOR pSecurityDescriptor) |
WINPR_API BOOL | IsValidSecurityDescriptor (PSECURITY_DESCRIPTOR pSecurityDescriptor) |
WINPR_API BOOL | GetSecurityDescriptorControl (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSECURITY_DESCRIPTOR_CONTROL pControl, LPDWORD lpdwRevision) |
WINPR_API BOOL | SetSecurityDescriptorControl (PSECURITY_DESCRIPTOR pSecurityDescriptor, SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet) |
WINPR_API BOOL | GetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbDaclPresent, PACL *pDacl, LPBOOL lpbDaclDefaulted) |
WINPR_API BOOL | SetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bDaclPresent, PACL pDacl, BOOL bDaclDefaulted) |
WINPR_API BOOL | GetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pGroup, LPBOOL lpbGroupDefaulted) |
WINPR_API BOOL | SetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID pGroup, BOOL bGroupDefaulted) |
WINPR_API BOOL | GetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pOwner, LPBOOL lpbOwnerDefaulted) |
WINPR_API BOOL | SetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID pOwner, BOOL bOwnerDefaulted) |
WINPR_API DWORD | GetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR SecurityDescriptor, PUCHAR RMControl) |
WINPR_API DWORD | SetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR SecurityDescriptor, PUCHAR RMControl) |
WINPR_API BOOL | GetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbSaclPresent, PACL *pSacl, LPBOOL lpbSaclDefaulted) |
WINPR_API BOOL | SetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bSaclPresent, PACL pSacl, BOOL bSaclDefaulted) |
#define ANYSIZE_ARRAY 1 |
WinPR: Windows Portable Runtime Security Definitions
Copyright 2012 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Windows Integrity Mechanism Design: http://msdn.microsoft.com/en-us/library/bb625963.aspx
#define DEFAULT_IMPERSONATION_LEVEL SecurityImpersonation |
#define POLICY_AUDIT_SUBCATEGORY_COUNT (56) |
#define SECURITY_CREATOR_GROUP_RID (0x00000001L) |
#define SECURITY_CREATOR_GROUP_SERVER_RID (0x00000003L) |
#define SECURITY_CREATOR_OWNER_RID (0x00000000L) |
#define SECURITY_CREATOR_OWNER_RIGHTS_RID (0x00000004L) |
#define SECURITY_CREATOR_OWNER_SERVER_RID (0x00000002L) |
#define SECURITY_CREATOR_SID_AUTHORITY |
#define SECURITY_LOCAL_LOGON_RID (0x00000001L) |
#define SECURITY_LOCAL_RID (0x00000000L) |
#define SECURITY_LOCAL_SID_AUTHORITY |
#define SECURITY_MANDATORY_HIGH_RID 0x3000 |
#define SECURITY_MANDATORY_LOW_RID 0x1000 |
#define SECURITY_MANDATORY_MEDIUM_RID 0x2000 |
#define SECURITY_MANDATORY_SYSTEM_RID 0x4000 |
#define SECURITY_MANDATORY_UNTRUSTED_RID 0x0000 |
#define SECURITY_MAX_IMPERSONATION_LEVEL SecurityDelegation |
#define SECURITY_MIN_IMPERSONATION_LEVEL SecurityAnonymous |
#define SECURITY_NON_UNIQUE_AUTHORITY |
#define SECURITY_NULL_RID (0x00000000L) |
#define SECURITY_NULL_SID_AUTHORITY |
#define SECURITY_RESOURCE_MANAGER_AUTHORITY |
#define SECURITY_WORLD_RID (0x00000000L) |
#define SECURITY_WORLD_SID_AUTHORITY |
#define SID_HASH_SIZE 32 |
#define SID_MAX_SUB_AUTHORITIES (15) |
#define SID_RECOMMENDED_SUB_AUTHORITIES (1) |
#define SID_REVISION (1) |
#define TOKEN_ADJUST_DEFAULT (0x0080) |
#define TOKEN_ADJUST_GROUPS (0x0040) |
#define TOKEN_ADJUST_PRIVILEGES (0x0020) |
#define TOKEN_ADJUST_SESSIONID (0x0100) |
#define TOKEN_ALL_ACCESS (TOKEN_ALL_ACCESS_P | TOKEN_ADJUST_SESSIONID) |
#define TOKEN_ALL_ACCESS_P |
#define TOKEN_ASSIGN_PRIMARY (0x0001) |
#define TOKEN_DUPLICATE (0x0002) |
#define TOKEN_EXECUTE (STANDARD_RIGHTS_EXECUTE) |
#define TOKEN_IMPERSONATE (0x0004) |
#define TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN 0x2 |
#define TOKEN_MANDATORY_POLICY_NO_WRITE_UP 0x1 |
#define TOKEN_MANDATORY_POLICY_OFF 0x0 |
#define TOKEN_MANDATORY_POLICY_VALID_MASK (TOKEN_MANDATORY_POLICY_NO_WRITE_UP | TOKEN_MANDATORY_POLICY_NEW_PROCESS_MIN) |
#define TOKEN_QUERY (0x0008) |
#define TOKEN_QUERY_SOURCE (0x0010) |
#define TOKEN_READ (STANDARD_RIGHTS_READ | TOKEN_QUERY) |
#define TOKEN_SOURCE_LENGTH 8 |
#define TOKEN_WRITE (STANDARD_RIGHTS_WRITE | TOKEN_ADJUST_PRIVILEGES | TOKEN_ADJUST_GROUPS | TOKEN_ADJUST_DEFAULT) |
#define VALID_IMPERSONATION_LEVEL | ( | L | ) | (((L) >= SECURITY_MIN_IMPERSONATION_LEVEL) && ((L) <= SECURITY_MAX_IMPERSONATION_LEVEL)) |
typedef LUID_AND_ATTRIBUTES LUID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY] |
typedef PVOID PACCESS_TOKEN |
typedef PVOID PCLAIMS_BLOB |
typedef struct LUID_AND_ATTRIBUTES * PLUID_AND_ATTRIBUTES |
typedef enum MANDATORY_LEVEL * PMANDATORY_LEVEL |
typedef enum SECURITY_IMPERSONATION_LEVEL * PSECURITY_IMPERSONATION_LEVEL |
typedef struct SID_AND_ATTRIBUTES * PSID_AND_ATTRIBUTES |
typedef struct SID_AND_ATTRIBUTES_HASH * PSID_AND_ATTRIBUTES_HASH |
typedef ULONG_PTR * PSID_HASH_ENTRY |
typedef struct SID_IDENTIFIER_AUTHORITY * PSID_IDENTIFIER_AUTHORITY |
typedef enum SID_NAME_USE * PSID_NAME_USE |
typedef struct TOKEN_ACCESS_INFORMATION * PTOKEN_ACCESS_INFORMATION |
typedef struct TOKEN_APPCONTAINER_INFORMATION * PTOKEN_APPCONTAINER_INFORMATION |
typedef struct TOKEN_AUDIT_POLICY * PTOKEN_AUDIT_POLICY |
typedef struct TOKEN_CONTROL * PTOKEN_CONTROL |
typedef struct TOKEN_DEFAULT_DACL * PTOKEN_DEFAULT_DACL |
typedef struct TOKEN_DEVICE_CLAIMS * PTOKEN_DEVICE_CLAIMS |
typedef struct TOKEN_ELEVATION * PTOKEN_ELEVATION |
typedef enum TOKEN_ELEVATION_TYPE * PTOKEN_ELEVATION_TYPE |
typedef struct TOKEN_GROUPS * PTOKEN_GROUPS |
typedef struct TOKEN_GROUPS_AND_PRIVILEGES * PTOKEN_GROUPS_AND_PRIVILEGES |
typedef enum TOKEN_INFORMATION_CLASS * PTOKEN_INFORMATION_CLASS |
typedef struct TOKEN_LINKED_TOKEN * PTOKEN_LINKED_TOKEN |
typedef struct TOKEN_MANDATORY_LABEL * PTOKEN_MANDATORY_LABEL |
typedef struct TOKEN_MANDATORY_POLICY * PTOKEN_MANDATORY_POLICY |
typedef struct TOKEN_ORIGIN * PTOKEN_ORIGIN |
typedef struct TOKEN_OWNER * PTOKEN_OWNER |
typedef struct TOKEN_PRIMARY_GROUP * PTOKEN_PRIMARY_GROUP |
typedef struct TOKEN_PRIVILEGES * PTOKEN_PRIVILEGES |
typedef struct TOKEN_SOURCE * PTOKEN_SOURCE |
typedef struct TOKEN_STATISTICS * PTOKEN_STATISTICS |
typedef TOKEN_TYPE* PTOKEN_TYPE |
typedef struct TOKEN_USER * PTOKEN_USER |
typedef struct TOKEN_USER_CLAIMS * PTOKEN_USER_CLAIMS |
typedef SID_AND_ATTRIBUTES SID_AND_ATTRIBUTES_ARRAY[ANYSIZE_ARRAY] |
typedef ULONG_PTR SID_HASH_ENTRY |
enum MANDATORY_LEVEL |
enum SID_NAME_USE |
enum TOKEN_ELEVATION_TYPE |
enum TOKEN_TYPE |
WINPR_API BOOL GetSecurityDescriptorControl | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
PSECURITY_DESCRIPTOR_CONTROL | pControl, | ||
LPDWORD | lpdwRevision | ||
) |
WINPR_API BOOL GetSecurityDescriptorDacl | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
LPBOOL | lpbDaclPresent, | ||
PACL * | pDacl, | ||
LPBOOL | lpbDaclDefaulted | ||
) |
WINPR_API BOOL GetSecurityDescriptorGroup | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
PSID * | pGroup, | ||
LPBOOL | lpbGroupDefaulted | ||
) |
WINPR_API DWORD GetSecurityDescriptorLength | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor | ) |
WINPR_API BOOL GetSecurityDescriptorOwner | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
PSID * | pOwner, | ||
LPBOOL | lpbOwnerDefaulted | ||
) |
WINPR_API DWORD GetSecurityDescriptorRMControl | ( | PSECURITY_DESCRIPTOR | SecurityDescriptor, |
PUCHAR | RMControl | ||
) |
WINPR_API BOOL GetSecurityDescriptorSacl | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
LPBOOL | lpbSaclPresent, | ||
PACL * | pSacl, | ||
LPBOOL | lpbSaclDefaulted | ||
) |
WINPR_API BOOL InitializeSecurityDescriptor | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
DWORD | dwRevision | ||
) |
WinPR: Windows Portable Runtime Base Security Functions
Copyright 2013 Marc-Andre Moreau marca ndre .more au@g mail. com
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. api-ms-win-security-base-l1-2-0.dll:
AccessCheck AccessCheckAndAuditAlarmW AccessCheckByType AccessCheckByTypeAndAuditAlarmW AccessCheckByTypeResultList AccessCheckByTypeResultListAndAuditAlarmByHandleW AccessCheckByTypeResultListAndAuditAlarmW AddAccessAllowedAce AddAccessAllowedAceEx AddAccessAllowedObjectAce AddAccessDeniedAce AddAccessDeniedAceEx AddAccessDeniedObjectAce AddAce AddAuditAccessAce AddAuditAccessAceEx AddAuditAccessObjectAce AddMandatoryAce AddResourceAttributeAce AddScopedPolicyIDAce AdjustTokenGroups AdjustTokenPrivileges AllocateAndInitializeSid AllocateLocallyUniqueId AreAllAccessesGranted AreAnyAccessesGranted CheckTokenCapability CheckTokenMembership CheckTokenMembershipEx ConvertToAutoInheritPrivateObjectSecurity CopySid CreatePrivateObjectSecurity CreatePrivateObjectSecurityEx CreatePrivateObjectSecurityWithMultipleInheritance CreateRestrictedToken CreateWellKnownSid DeleteAce DestroyPrivateObjectSecurity DuplicateToken DuplicateTokenEx EqualDomainSid EqualPrefixSid EqualSid FindFirstFreeAce FreeSid GetAce GetAclInformation GetAppContainerAce GetCachedSigningLevel GetFileSecurityW GetKernelObjectSecurity GetLengthSid GetPrivateObjectSecurity GetSidIdentifierAuthority GetSidLengthRequired GetSidSubAuthority GetSidSubAuthorityCount GetTokenInformation GetWindowsAccountDomainSid ImpersonateAnonymousToken ImpersonateLoggedOnUser ImpersonateSelf InitializeAcl InitializeSid IsTokenRestricted IsValidAcl IsValidSid IsWellKnownSid MakeAbsoluteSD MakeSelfRelativeSD MapGenericMask ObjectCloseAuditAlarmW ObjectDeleteAuditAlarmW ObjectOpenAuditAlarmW ObjectPrivilegeAuditAlarmW PrivilegeCheck PrivilegedServiceAuditAlarmW QuerySecurityAccessMask RevertToSelf SetAclInformation SetCachedSigningLevel SetFileSecurityW SetKernelObjectSecurity SetPrivateObjectSecurity SetPrivateObjectSecurityEx SetSecurityAccessMask SetTokenInformation
WINPR_API BOOL IsValidSecurityDescriptor | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor | ) |
WINPR_API BOOL SetSecurityDescriptorControl | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
SECURITY_DESCRIPTOR_CONTROL | ControlBitsOfInterest, | ||
SECURITY_DESCRIPTOR_CONTROL | ControlBitsToSet | ||
) |
WINPR_API BOOL SetSecurityDescriptorDacl | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
BOOL | bDaclPresent, | ||
PACL | pDacl, | ||
BOOL | bDaclDefaulted | ||
) |
WINPR_API BOOL SetSecurityDescriptorGroup | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
PSID | pGroup, | ||
BOOL | bGroupDefaulted | ||
) |
WINPR_API BOOL SetSecurityDescriptorOwner | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
PSID | pOwner, | ||
BOOL | bOwnerDefaulted | ||
) |
WINPR_API DWORD SetSecurityDescriptorRMControl | ( | PSECURITY_DESCRIPTOR | SecurityDescriptor, |
PUCHAR | RMControl | ||
) |
WINPR_API BOOL SetSecurityDescriptorSacl | ( | PSECURITY_DESCRIPTOR | pSecurityDescriptor, |
BOOL | bSaclPresent, | ||
PACL | pSacl, | ||
BOOL | bSaclDefaulted | ||
) |