ReactOS 0.4.16-dev-1494-gd054f63
|
#include <stdarg.h>
#include <string.h>
#include "ntstatus.h"
#include "windef.h"
#include "winbase.h"
#include "winerror.h"
#include "winternl.h"
#include "winioctl.h"
#include "ddk/ntddk.h"
#include "kernelbase.h"
#include "wine/debug.h"
#include "wine/heap.h"
Go to the source code of this file.
Classes | |
union | _MAX_SID |
struct | WELLKNOWNSID |
struct | WELLKNOWNRID |
Macros | |
#define | WIN32_NO_STATUS |
Typedefs | |
typedef struct _MAX_SID | MAX_SID |
typedef struct WELLKNOWNSID | WELLKNOWNSID |
typedef struct WELLKNOWNRID | WELLKNOWNRID |
Variables | |
static const WELLKNOWNSID | WellKnownSids [] |
static const WELLKNOWNRID | WellKnownRids [] |
#define WIN32_NO_STATUS |
Definition at line 26 of file security.c.
typedef struct WELLKNOWNRID WELLKNOWNRID |
typedef struct WELLKNOWNSID WELLKNOWNSID |
BOOL WINAPI AccessCheck | ( | PSECURITY_DESCRIPTOR | descr, |
HANDLE | token, | ||
DWORD | access, | ||
PGENERIC_MAPPING | mapping, | ||
PPRIVILEGE_SET | priv, | ||
LPDWORD | priv_len, | ||
LPDWORD | granted, | ||
LPBOOL | status | ||
) |
Definition at line 1248 of file security.c.
BOOL WINAPI AccessCheckAndAuditAlarmW | ( | LPCWSTR | subsystem, |
LPVOID | id, | ||
LPWSTR | type_name, | ||
LPWSTR | name, | ||
PSECURITY_DESCRIPTOR | descr, | ||
DWORD | access, | ||
PGENERIC_MAPPING | mapping, | ||
BOOL | creation, | ||
LPDWORD | granted, | ||
LPBOOL | status, | ||
LPBOOL | on_close | ||
) |
Definition at line 1261 of file security.c.
BOOL WINAPI AccessCheckByType | ( | PSECURITY_DESCRIPTOR | descr, |
PSID | sid, | ||
HANDLE | token, | ||
DWORD | access, | ||
POBJECT_TYPE_LIST | types, | ||
DWORD | types_len, | ||
PGENERIC_MAPPING | mapping, | ||
PPRIVILEGE_SET | priv, | ||
LPDWORD | priv_len, | ||
LPDWORD | granted, | ||
LPBOOL | status | ||
) |
Definition at line 1287 of file security.c.
Definition at line 1295 of file security.c.
BOOL WINAPI AddAccessAllowedObjectAce | ( | PACL | acl, |
DWORD | rev, | ||
DWORD | flags, | ||
DWORD | access, | ||
GUID * | type, | ||
GUID * | inherit, | ||
PSID | sid | ||
) |
Definition at line 1303 of file security.c.
Definition at line 1312 of file security.c.
Definition at line 1320 of file security.c.
BOOL WINAPI AddAccessDeniedObjectAce | ( | PACL | acl, |
DWORD | rev, | ||
DWORD | flags, | ||
DWORD | access, | ||
GUID * | type, | ||
GUID * | inherit, | ||
PSID | sid | ||
) |
Definition at line 1328 of file security.c.
Definition at line 1337 of file security.c.
BOOL WINAPI AddAuditAccessAce | ( | PACL | acl, |
DWORD | rev, | ||
DWORD | access, | ||
PSID | sid, | ||
BOOL | success, | ||
BOOL | failure | ||
) |
Definition at line 1345 of file security.c.
BOOL WINAPI AddAuditAccessAceEx | ( | PACL | acl, |
DWORD | rev, | ||
DWORD | flags, | ||
DWORD | access, | ||
PSID | sid, | ||
BOOL | success, | ||
BOOL | failure | ||
) |
Definition at line 1353 of file security.c.
BOOL WINAPI AddAuditAccessObjectAce | ( | PACL | acl, |
DWORD | rev, | ||
DWORD | flags, | ||
DWORD | access, | ||
GUID * | type, | ||
GUID * | inherit, | ||
PSID | sid, | ||
BOOL | success, | ||
BOOL | failure | ||
) |
Definition at line 1362 of file security.c.
Definition at line 1372 of file security.c.
BOOL WINAPI AdjustTokenGroups | ( | HANDLE | token, |
BOOL | reset, | ||
PTOKEN_GROUPS | new, | ||
DWORD | len, | ||
PTOKEN_GROUPS | prev, | ||
PDWORD | ret_len | ||
) |
Definition at line 526 of file security.c.
BOOL WINAPI AdjustTokenPrivileges | ( | HANDLE | token, |
BOOL | disable, | ||
PTOKEN_PRIVILEGES | new, | ||
DWORD | len, | ||
PTOKEN_PRIVILEGES | prev, | ||
PDWORD | ret_len | ||
) |
Definition at line 535 of file security.c.
BOOL WINAPI AllocateAndInitializeSid | ( | PSID_IDENTIFIER_AUTHORITY | auth, |
BYTE | count, | ||
DWORD | auth0, | ||
DWORD | auth1, | ||
DWORD | auth2, | ||
DWORD | auth3, | ||
DWORD | auth4, | ||
DWORD | auth5, | ||
DWORD | auth6, | ||
DWORD | auth7, | ||
PSID * | sid | ||
) |
Definition at line 216 of file security.c.
Definition at line 227 of file security.c.
Definition at line 1381 of file security.c.
Definition at line 1389 of file security.c.
Definition at line 550 of file security.c.
BOOL WINAPI ConvertToAutoInheritPrivateObjectSecurity | ( | PSECURITY_DESCRIPTOR | parent, |
PSECURITY_DESCRIPTOR | current, | ||
PSECURITY_DESCRIPTOR * | descr, | ||
GUID * | type, | ||
BOOL | is_dir, | ||
PGENERIC_MAPPING | mapping | ||
) |
Definition at line 906 of file security.c.
Definition at line 235 of file security.c.
Definition at line 918 of file security.c.
BOOL WINAPI CreatePrivateObjectSecurity | ( | PSECURITY_DESCRIPTOR | parent, |
PSECURITY_DESCRIPTOR | creator, | ||
PSECURITY_DESCRIPTOR * | descr, | ||
BOOL | is_container, | ||
HANDLE | token, | ||
PGENERIC_MAPPING | mapping | ||
) |
Definition at line 927 of file security.c.
BOOL WINAPI CreatePrivateObjectSecurityEx | ( | PSECURITY_DESCRIPTOR | parent, |
PSECURITY_DESCRIPTOR | creator, | ||
PSECURITY_DESCRIPTOR * | descr, | ||
GUID * | type, | ||
BOOL | is_container, | ||
ULONG | flags, | ||
HANDLE | token, | ||
PGENERIC_MAPPING | mapping | ||
) |
Definition at line 937 of file security.c.
BOOL WINAPI CreatePrivateObjectSecurityWithMultipleInheritance | ( | PSECURITY_DESCRIPTOR | parent, |
PSECURITY_DESCRIPTOR | creator, | ||
PSECURITY_DESCRIPTOR * | descr, | ||
GUID ** | types, | ||
ULONG | count, | ||
BOOL | is_container, | ||
ULONG | flags, | ||
HANDLE | token, | ||
PGENERIC_MAPPING | mapping | ||
) |
Definition at line 947 of file security.c.
BOOL WINAPI CreateRestrictedToken | ( | HANDLE | token, |
DWORD | flags, | ||
DWORD | disable_sid_count, | ||
SID_AND_ATTRIBUTES * | disable_sids, | ||
DWORD | delete_priv_count, | ||
LUID_AND_ATTRIBUTES * | delete_privs, | ||
DWORD | restrict_sid_count, | ||
SID_AND_ATTRIBUTES * | restrict_sids, | ||
HANDLE * | ret | ||
) |
Definition at line 629 of file security.c.
Definition at line 429 of file security.c.
Definition at line 163 of file security.c.
Definition at line 1397 of file security.c.
BOOL WINAPI DestroyPrivateObjectSecurity | ( | PSECURITY_DESCRIPTOR * | descr | ) |
Definition at line 961 of file security.c.
BOOL WINAPI DuplicateToken | ( | HANDLE | token, |
SECURITY_IMPERSONATION_LEVEL | level, | ||
PHANDLE | ret | ||
) |
Definition at line 675 of file security.c.
BOOL WINAPI DuplicateTokenEx | ( | HANDLE | token, |
DWORD | access, | ||
LPSECURITY_ATTRIBUTES | sa, | ||
SECURITY_IMPERSONATION_LEVEL | level, | ||
TOKEN_TYPE | type, | ||
PHANDLE | ret | ||
) |
Definition at line 683 of file security.c.
Definition at line 261 of file security.c.
Definition at line 243 of file security.c.
Definition at line 251 of file security.c.
Definition at line 1405 of file security.c.
Definition at line 316 of file security.c.
Definition at line 1413 of file security.c.
Definition at line 1421 of file security.c.
BOOL WINAPI GetFileSecurityW | ( | LPCWSTR | name, |
SECURITY_INFORMATION | info, | ||
PSECURITY_DESCRIPTOR | descr, | ||
DWORD | len, | ||
LPDWORD | ret_len | ||
) |
Definition at line 969 of file security.c.
BOOL WINAPI GetKernelObjectSecurity | ( | HANDLE | handle, |
SECURITY_INFORMATION | info, | ||
PSECURITY_DESCRIPTOR | descr, | ||
DWORD | len, | ||
LPDWORD | ret_len | ||
) |
Definition at line 994 of file security.c.
Definition at line 325 of file security.c.
BOOL WINAPI GetPrivateObjectSecurity | ( | PSECURITY_DESCRIPTOR | obj_descr, |
SECURITY_INFORMATION | info, | ||
PSECURITY_DESCRIPTOR | ret_descr, | ||
DWORD | len, | ||
PDWORD | ret_len | ||
) |
Definition at line 1003 of file security.c.
Referenced by test_PrivateObjectSecurity().
BOOL WINAPI GetSecurityDescriptorControl | ( | PSECURITY_DESCRIPTOR | descr, |
PSECURITY_DESCRIPTOR_CONTROL | control, | ||
LPDWORD | revision | ||
) |
Definition at line 1043 of file security.c.
BOOL WINAPI GetSecurityDescriptorDacl | ( | PSECURITY_DESCRIPTOR | descr, |
LPBOOL | dacl_present, | ||
PACL * | dacl, | ||
LPBOOL | dacl_defaulted | ||
) |
Definition at line 1052 of file security.c.
BOOL WINAPI GetSecurityDescriptorGroup | ( | PSECURITY_DESCRIPTOR | descr, |
PSID * | group, | ||
LPBOOL | group_defaulted | ||
) |
Definition at line 1065 of file security.c.
DWORD WINAPI GetSecurityDescriptorLength | ( | PSECURITY_DESCRIPTOR | descr | ) |
Definition at line 1076 of file security.c.
Referenced by get_sd(), and RSAENH_CPGetProvParam().
BOOL WINAPI GetSecurityDescriptorOwner | ( | PSECURITY_DESCRIPTOR | descr, |
PSID * | owner, | ||
LPBOOL | owner_defaulted | ||
) |
Definition at line 1084 of file security.c.
BOOL WINAPI GetSecurityDescriptorSacl | ( | PSECURITY_DESCRIPTOR | descr, |
LPBOOL | sacl_present, | ||
PACL * | sacl, | ||
LPBOOL | sacl_defaulted | ||
) |
Definition at line 1095 of file security.c.
PSID_IDENTIFIER_AUTHORITY WINAPI GetSidIdentifierAuthority | ( | PSID | sid | ) |
Definition at line 333 of file security.c.
Definition at line 342 of file security.c.
Definition at line 350 of file security.c.
Definition at line 359 of file security.c.
BOOL WINAPI GetTokenInformation | ( | HANDLE | token, |
TOKEN_INFORMATION_CLASS | class, | ||
LPVOID | info, | ||
DWORD | len, | ||
LPDWORD | retlen | ||
) |
Definition at line 704 of file security.c.
Definition at line 368 of file security.c.
Definition at line 736 of file security.c.
Definition at line 745 of file security.c.
Referenced by test_AccessCheck().
Definition at line 774 of file security.c.
BOOL WINAPI ImpersonateSelf | ( | SECURITY_IMPERSONATION_LEVEL | level | ) |
Definition at line 785 of file security.c.
Definition at line 1429 of file security.c.
BOOL WINAPI InitializeSecurityDescriptor | ( | PSECURITY_DESCRIPTOR | descr, |
DWORD | revision | ||
) |
Definition at line 1108 of file security.c.
BOOL WINAPI InitializeSid | ( | PSID | sid, |
PSID_IDENTIFIER_AUTHORITY | auth, | ||
BYTE | count | ||
) |
Definition at line 413 of file security.c.
Definition at line 793 of file security.c.
Definition at line 1437 of file security.c.
BOOL WINAPI IsValidSecurityDescriptor | ( | PSECURITY_DESCRIPTOR | descr | ) |
Definition at line 1116 of file security.c.
Referenced by validate_default_security_descriptor().
Definition at line 421 of file security.c.
BOOL WINAPI IsWellKnownSid | ( | PSID | sid, |
WELL_KNOWN_SID_TYPE | type | ||
) |
Definition at line 503 of file security.c.
BOOL WINAPI MakeAbsoluteSD | ( | PSECURITY_DESCRIPTOR | rel_descr, |
PSECURITY_DESCRIPTOR | abs_descr, | ||
LPDWORD | abs_size, | ||
PACL | dacl, | ||
LPDWORD | dacl_size, | ||
PACL | sacl, | ||
LPDWORD | sacl_size, | ||
PSID | owner, | ||
LPDWORD | owner_size, | ||
PSID | group, | ||
LPDWORD | group_size | ||
) |
Definition at line 1127 of file security.c.
BOOL WINAPI MakeSelfRelativeSD | ( | PSECURITY_DESCRIPTOR | abs_descr, |
PSECURITY_DESCRIPTOR | rel_descr, | ||
LPDWORD | len | ||
) |
Definition at line 1139 of file security.c.
void WINAPI MapGenericMask | ( | PDWORD | access, |
PGENERIC_MAPPING | mapping | ||
) |
Definition at line 1445 of file security.c.
Referenced by ISecurityInformation_fnMapGeneric(), and PrintFileDacl().
Definition at line 1453 of file security.c.
Definition at line 1462 of file security.c.
BOOL WINAPI ObjectOpenAuditAlarmW | ( | LPCWSTR | subsystem, |
LPVOID | id, | ||
LPWSTR | type, | ||
LPWSTR | name, | ||
PSECURITY_DESCRIPTOR | descr, | ||
HANDLE | token, | ||
DWORD | desired, | ||
DWORD | granted, | ||
PPRIVILEGE_SET | privs, | ||
BOOL | creation, | ||
BOOL | access, | ||
LPBOOL | on_close | ||
) |
Definition at line 1471 of file security.c.
BOOL WINAPI ObjectPrivilegeAuditAlarmW | ( | LPCWSTR | subsystem, |
LPVOID | id, | ||
HANDLE | token, | ||
DWORD | desired, | ||
PPRIVILEGE_SET | privs, | ||
BOOL | granted | ||
) |
Definition at line 1485 of file security.c.
Definition at line 143 of file security.c.
Referenced by GetFileSecurityW(), and SetFileSecurityW().
Definition at line 828 of file security.c.
Definition at line 836 of file security.c.
BOOL WINAPI PrivilegeCheck | ( | HANDLE | token, |
PPRIVILEGE_SET | privs, | ||
LPBOOL | result | ||
) |
Definition at line 844 of file security.c.
BOOL WINAPI PrivilegedServiceAuditAlarmW | ( | LPCWSTR | subsystem, |
LPCWSTR | service, | ||
HANDLE | token, | ||
PPRIVILEGE_SET | privs, | ||
BOOL | granted | ||
) |
Definition at line 1495 of file security.c.
Definition at line 855 of file security.c.
Referenced by CreateUserEnvironment(), InsertTokenToProcessCommon(), KillComProcesses(), LogoffShutdownThread(), named_pipe_client_func(), OnShutDown(), PerfDataRefresh(), PlayEventSound(), PlayLogoffShutdownSound(), PlayLogonSoundThread(), RegOpenCurrentUser(), RestoreAllConnections(), rpcrt4_conn_np_revert_to_self(), ScmStartUserModeService(), ScreenSaverThreadMain(), SetDefaultLanguage(), START_TEST(), StartScreenSaver(), test_AccessCheck(), test_FileSecurity(), test_ImpersonateNamedPipeClient(), test_impersonation_level(), test_token_security_descriptor(), and WlxScreenSaverNotify().
BOOL WINAPI SetFileSecurityW | ( | LPCWSTR | name, |
SECURITY_INFORMATION | info, | ||
PSECURITY_DESCRIPTOR | descr | ||
) |
Definition at line 1148 of file security.c.
BOOL WINAPI SetKernelObjectSecurity | ( | HANDLE | handle, |
SECURITY_INFORMATION | info, | ||
PSECURITY_DESCRIPTOR | descr | ||
) |
Definition at line 1171 of file security.c.
BOOL WINAPI SetPrivateObjectSecurity | ( | SECURITY_INFORMATION | info, |
PSECURITY_DESCRIPTOR | descr, | ||
PSECURITY_DESCRIPTOR * | obj_descr, | ||
PGENERIC_MAPPING | mapping, | ||
HANDLE | token | ||
) |
BOOL WINAPI SetPrivateObjectSecurityEx | ( | SECURITY_INFORMATION | info, |
PSECURITY_DESCRIPTOR | descr, | ||
PSECURITY_DESCRIPTOR * | obj_descr, | ||
ULONG | flags, | ||
PGENERIC_MAPPING | mapping, | ||
HANDLE | token | ||
) |
BOOL WINAPI SetSecurityDescriptorControl | ( | PSECURITY_DESCRIPTOR | descr, |
SECURITY_DESCRIPTOR_CONTROL | mask, | ||
SECURITY_DESCRIPTOR_CONTROL | set | ||
) |
Definition at line 1201 of file security.c.
BOOL WINAPI SetSecurityDescriptorDacl | ( | PSECURITY_DESCRIPTOR | descr, |
BOOL | present, | ||
PACL | dacl, | ||
BOOL | defaulted | ||
) |
Definition at line 1210 of file security.c.
BOOL WINAPI SetSecurityDescriptorGroup | ( | PSECURITY_DESCRIPTOR | descr, |
PSID | group, | ||
BOOL | defaulted | ||
) |
Definition at line 1218 of file security.c.
Referenced by get_sd(), GetPrivateObjectSecurity(), test_AccessCheck(), test_ConvertSecurityDescriptorToString(), and test_process_security().
BOOL WINAPI SetSecurityDescriptorOwner | ( | PSECURITY_DESCRIPTOR | descr, |
PSID | owner, | ||
BOOL | defaulted | ||
) |
Definition at line 1226 of file security.c.
Referenced by get_sd(), GetPrivateObjectSecurity(), test_AccessCheck(), test_ConvertSecurityDescriptorToString(), and test_process_security().
BOOL WINAPI SetSecurityDescriptorSacl | ( | PSECURITY_DESCRIPTOR | descr, |
BOOL | present, | ||
PACL | sacl, | ||
BOOL | defaulted | ||
) |
Definition at line 1234 of file security.c.
Referenced by GetPrivateObjectSecurity(), test_AddMandatoryAce(), test_ConvertSecurityDescriptorToString(), and test_token_security_descriptor().
Definition at line 863 of file security.c.
BOOL WINAPI SetTokenInformation | ( | HANDLE | token, |
TOKEN_INFORMATION_CLASS | class, | ||
LPVOID | info, | ||
DWORD | len | ||
) |
Definition at line 872 of file security.c.
WINE_DEFAULT_DEBUG_CHANNEL | ( | security | ) |
|
static |
Definition at line 126 of file security.c.
|
static |
Definition at line 60 of file security.c.