ReactOS 0.4.16-dev-303-g11d5cb8
sec.c File Reference
#include <advapi32.h>
Include dependency graph for sec.c:

Go to the source code of this file.

Functions

 WINE_DEFAULT_DEBUG_CHANNEL (advapi)
 
BOOL WINAPI GetSecurityDescriptorControl (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSECURITY_DESCRIPTOR_CONTROL pControl, LPDWORD lpdwRevision)
 
BOOL WINAPI GetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbDaclPresent, PACL *pDacl, LPBOOL lpbDaclDefaulted)
 
BOOL WINAPI GetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pGroup, LPBOOL lpbGroupDefaulted)
 
BOOL WINAPI GetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID *pOwner, LPBOOL lpbOwnerDefaulted)
 
DWORD WINAPI GetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR SecurityDescriptor, PUCHAR RMControl)
 
BOOL WINAPI GetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, LPBOOL lpbSaclPresent, PACL *pSacl, LPBOOL lpbSaclDefaulted)
 
BOOL WINAPI IsValidSecurityDescriptor (PSECURITY_DESCRIPTOR pSecurityDescriptor)
 
BOOL WINAPI MakeAbsoluteSD2 (IN OUT PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, OUT LPDWORD lpdwBufferSize)
 
BOOL WINAPI MakeSelfRelativeSD (PSECURITY_DESCRIPTOR pAbsoluteSecurityDescriptor, PSECURITY_DESCRIPTOR pSelfRelativeSecurityDescriptor, LPDWORD lpdwBufferLength)
 
BOOL WINAPI SetSecurityDescriptorControl (PSECURITY_DESCRIPTOR pSecurityDescriptor, SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet)
 
BOOL WINAPI SetSecurityDescriptorDacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bDaclPresent, PACL pDacl, BOOL bDaclDefaulted)
 
BOOL WINAPI SetSecurityDescriptorGroup (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID pGroup, BOOL bGroupDefaulted)
 
BOOL WINAPI SetSecurityDescriptorOwner (PSECURITY_DESCRIPTOR pSecurityDescriptor, PSID pOwner, BOOL bOwnerDefaulted)
 
DWORD WINAPI SetSecurityDescriptorRMControl (PSECURITY_DESCRIPTOR SecurityDescriptor, PUCHAR RMControl)
 
BOOL WINAPI SetSecurityDescriptorSacl (PSECURITY_DESCRIPTOR pSecurityDescriptor, BOOL bSaclPresent, PACL pSacl, BOOL bSaclDefaulted)
 
VOID WINAPI QuerySecurityAccessMask (IN SECURITY_INFORMATION SecurityInformation, OUT LPDWORD DesiredAccess)
 
VOID WINAPI SetSecurityAccessMask (IN SECURITY_INFORMATION SecurityInformation, OUT LPDWORD DesiredAccess)
 
BOOL WINAPI ConvertToAutoInheritPrivateObjectSecurity (IN PSECURITY_DESCRIPTOR ParentDescriptor, IN PSECURITY_DESCRIPTOR CurrentSecurityDescriptor, OUT PSECURITY_DESCRIPTOR *NewSecurityDescriptor, IN GUID *ObjectType, IN BOOLEAN IsDirectoryObject, IN PGENERIC_MAPPING GenericMapping)
 
DWORD WINAPI BuildSecurityDescriptorW (IN PTRUSTEE_W pOwner OPTIONAL, IN PTRUSTEE_W pGroup OPTIONAL, IN ULONG cCountOfAccessEntries, IN PEXPLICIT_ACCESS_W pListOfAccessEntries OPTIONAL, IN ULONG cCountOfAuditEntries, IN PEXPLICIT_ACCESS_W pListOfAuditEntries OPTIONAL, IN PSECURITY_DESCRIPTOR pOldSD OPTIONAL, OUT PULONG pSizeNewSD, OUT PSECURITY_DESCRIPTOR *pNewSD)
 
DWORD WINAPI BuildSecurityDescriptorA (IN PTRUSTEE_A pOwner OPTIONAL, IN PTRUSTEE_A pGroup OPTIONAL, IN ULONG cCountOfAccessEntries, IN PEXPLICIT_ACCESS_A pListOfAccessEntries OPTIONAL, IN ULONG cCountOfAuditEntries, IN PEXPLICIT_ACCESS_A pListOfAuditEntries OPTIONAL, IN PSECURITY_DESCRIPTOR pOldSD OPTIONAL, OUT PULONG pSizeNewSD, OUT PSECURITY_DESCRIPTOR *pNewSD)
 

Function Documentation

◆ BuildSecurityDescriptorA()

DWORD WINAPI BuildSecurityDescriptorA ( IN PTRUSTEE_A pOwner  OPTIONAL,
IN PTRUSTEE_A pGroup  OPTIONAL,
IN ULONG  cCountOfAccessEntries,
IN PEXPLICIT_ACCESS_A pListOfAccessEntries  OPTIONAL,
IN ULONG  cCountOfAuditEntries,
IN PEXPLICIT_ACCESS_A pListOfAuditEntries  OPTIONAL,
IN PSECURITY_DESCRIPTOR pOldSD  OPTIONAL,
OUT PULONG  pSizeNewSD,
OUT PSECURITY_DESCRIPTOR pNewSD 
)

Definition at line 456 of file sec.c.

465{
467 return FALSE;
468}
#define UNIMPLEMENTED
Definition: ntoskrnl.c:15
#define FALSE
Definition: types.h:117

◆ BuildSecurityDescriptorW()

DWORD WINAPI BuildSecurityDescriptorW ( IN PTRUSTEE_W pOwner  OPTIONAL,
IN PTRUSTEE_W pGroup  OPTIONAL,
IN ULONG  cCountOfAccessEntries,
IN PEXPLICIT_ACCESS_W pListOfAccessEntries  OPTIONAL,
IN ULONG  cCountOfAuditEntries,
IN PEXPLICIT_ACCESS_W pListOfAuditEntries  OPTIONAL,
IN PSECURITY_DESCRIPTOR pOldSD  OPTIONAL,
OUT PULONG  pSizeNewSD,
OUT PSECURITY_DESCRIPTOR pNewSD 
)

Definition at line 436 of file sec.c.

445{
447 return FALSE;
448}

Referenced by test_BuildSecurityDescriptorW().

◆ ConvertToAutoInheritPrivateObjectSecurity()

BOOL WINAPI ConvertToAutoInheritPrivateObjectSecurity ( IN PSECURITY_DESCRIPTOR  ParentDescriptor,
IN PSECURITY_DESCRIPTOR  CurrentSecurityDescriptor,
OUT PSECURITY_DESCRIPTOR NewSecurityDescriptor,
IN GUID ObjectType,
IN BOOLEAN  IsDirectoryObject,
IN PGENERIC_MAPPING  GenericMapping 
)

Definition at line 419 of file sec.c.

425{
427 return FALSE;
428}

◆ GetSecurityDescriptorControl()

BOOL WINAPI GetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSECURITY_DESCRIPTOR_CONTROL  pControl,
LPDWORD  lpdwRevision 
)

Definition at line 21 of file sec.c.

24{
26
27 Status = RtlGetControlSecurityDescriptor(pSecurityDescriptor,
28 pControl,
29 (PULONG)lpdwRevision);
30 if (!NT_SUCCESS(Status))
31 {
33 return FALSE;
34 }
35
36 return TRUE;
37}
LONG NTSTATUS
Definition: precomp.h:26
#define TRUE
Definition: types.h:120
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define SetLastError(x)
Definition: compat.h:752
Status
Definition: gdiplustypes.h:25
NTSYSAPI ULONG WINAPI RtlNtStatusToDosError(NTSTATUS)
NTSYSAPI NTSTATUS NTAPI RtlGetControlSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PSECURITY_DESCRIPTOR_CONTROL Control, _Out_ PULONG Revision)
uint32_t * PULONG
Definition: typedefs.h:59

Referenced by DumpDacl(), DumpSacl(), test_GetNamedSecurityInfoA(), test_GetShellSecurityDescriptor(), test_PrivateObjectSecurity(), test_SetSecurityDescriptorControl(), and test_token_label().

◆ GetSecurityDescriptorDacl()

BOOL WINAPI GetSecurityDescriptorDacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
LPBOOL  lpbDaclPresent,
PACL pDacl,
LPBOOL  lpbDaclDefaulted 
)

Definition at line 45 of file sec.c.

49{
53
54 Status = RtlGetDaclSecurityDescriptor(pSecurityDescriptor,
56 pDacl,
58 *lpbDaclPresent = (BOOL)DaclPresent;
59 *lpbDaclDefaulted = (BOOL)DaclDefaulted;
60
61 if (!NT_SUCCESS(Status))
62 {
64 return FALSE;
65 }
66
67 return TRUE;
68}
unsigned char BOOLEAN
_In_ BOOLEAN DaclPresent
Definition: rtlfuncs.h:1647
NTSYSAPI NTSTATUS NTAPI RtlGetDaclSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PBOOLEAN DaclPresent, _Out_ PACL *Dacl, _Out_ PBOOLEAN DaclDefaulted)
_In_ BOOLEAN _In_opt_ PACL _In_opt_ BOOLEAN DaclDefaulted
Definition: rtlfuncs.h:1650
#define BOOL
Definition: nt_native.h:43

Referenced by AccRewriteGetHandleRights(), CSecurityDescriptor::BeginDACLInteration(), DumpDacl(), get_sd(), handle_setacl(), IEffectivePermission_fnGetEffectivePermission(), PrintFileDacl(), ReloadPrincipalsList(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_child_token_sd(), test_default_dacl_owner_sid(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_GetShellSecurityDescriptor(), test_security_descriptor(), test_token_label(), test_token_security_descriptor(), and validate_default_security_descriptor().

◆ GetSecurityDescriptorGroup()

BOOL WINAPI GetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID pGroup,
LPBOOL  lpbGroupDefaulted 
)

Definition at line 76 of file sec.c.

79{
82
83 Status = RtlGetGroupSecurityDescriptor(pSecurityDescriptor,
84 pGroup,
86 *lpbGroupDefaulted = (BOOL)GroupDefaulted;
87
88 if (!NT_SUCCESS(Status))
89 {
91 return FALSE;
92 }
93
94 return TRUE;
95}
_In_opt_ PSID _In_opt_ BOOLEAN GroupDefaulted
Definition: rtlfuncs.h:1660
NTSYSAPI NTSTATUS NTAPI RtlGetGroupSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSID *Group, OUT PBOOLEAN GroupDefaulted)
Definition: sd.c:280

Referenced by AccRewriteGetHandleRights(), DumpGroup(), get_sd(), handle_setacl(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_group_equal(), test_security_descriptor(), test_token_label(), and validate_default_security_descriptor().

◆ GetSecurityDescriptorOwner()

BOOL WINAPI GetSecurityDescriptorOwner ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID pOwner,
LPBOOL  lpbOwnerDefaulted 
)

Definition at line 103 of file sec.c.

106{
109
110 Status = RtlGetOwnerSecurityDescriptor(pSecurityDescriptor,
111 pOwner,
113 *lpbOwnerDefaulted = (BOOL)OwnerDefaulted;
114
115 if (!NT_SUCCESS(Status))
116 {
118 return FALSE;
119 }
120
121 return TRUE;
122}
_In_opt_ PSID _In_opt_ BOOLEAN OwnerDefaulted
Definition: rtlfuncs.h:1684
NTSYSAPI NTSTATUS NTAPI RtlGetOwnerSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PSID *Owner, OUT PBOOLEAN OwnerDefaulted)
Definition: sd.c:257

Referenced by AccRewriteGetHandleRights(), DumpOwner(), CShellCommandOwner::Execute(), get_sd(), handle_setacl(), ReloadPrincipalsList(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_default_dacl_owner_sid(), test_GetNamedSecurityInfoA(), test_GetSecurityInfo(), test_owner_equal(), test_security_descriptor(), test_token_label(), and validate_default_security_descriptor().

◆ GetSecurityDescriptorRMControl()

DWORD WINAPI GetSecurityDescriptorRMControl ( PSECURITY_DESCRIPTOR  SecurityDescriptor,
PUCHAR  RMControl 
)

Definition at line 130 of file sec.c.

132{
134 RMControl))
135 return ERROR_INVALID_DATA;
136
137 return ERROR_SUCCESS;
138}
#define ERROR_SUCCESS
Definition: deptool.c:10
NTSYSAPI BOOLEAN NTAPI RtlGetSecurityDescriptorRMControl(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PUCHAR RMControl)
#define ERROR_INVALID_DATA
Definition: winerror.h:116
_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
Definition: wsk.h:191

◆ GetSecurityDescriptorSacl()

BOOL WINAPI GetSecurityDescriptorSacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
LPBOOL  lpbSaclPresent,
PACL pSacl,
LPBOOL  lpbSaclDefaulted 
)

Definition at line 146 of file sec.c.

150{
154
155 Status = RtlGetSaclSecurityDescriptor(pSecurityDescriptor,
157 pSacl,
159 *lpbSaclPresent = (BOOL)SaclPresent;
160 *lpbSaclDefaulted = (BOOL)SaclDefaulted;
161
162 if (!NT_SUCCESS(Status))
163 {
165 return FALSE;
166 }
167
168 return TRUE;
169}
NTSYSAPI NTSTATUS NTAPI RtlGetSaclSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _Out_ PBOOLEAN SaclPresent, _Out_ PACL *Sacl, _Out_ PBOOLEAN SaclDefaulted)
_Out_ PBOOLEAN SaclPresent
Definition: rtlfuncs.h:2430
_Out_ PBOOLEAN _Out_ PACL _Out_ PBOOLEAN SaclDefaulted
Definition: rtlfuncs.h:2432

Referenced by AccRewriteGetHandleRights(), CSecurityDescriptor::BeginSACLInteration(), DumpSacl(), get_sd(), RSAENH_CPSetProvParam(), SetupCommitFileQueueW(), test_AddMandatoryAce(), test_child_token_sd(), test_child_token_sd_medium(), test_child_token_sd_restricted(), test_security_descriptor(), test_token_label(), and test_token_security_descriptor().

◆ IsValidSecurityDescriptor()

BOOL WINAPI IsValidSecurityDescriptor ( PSECURITY_DESCRIPTOR  pSecurityDescriptor)

Definition at line 176 of file sec.c.

177{
179
180 Result = RtlValidSecurityDescriptor (pSecurityDescriptor);
181 if (Result == FALSE)
183
184 return (BOOL)Result;
185}
unsigned int BOOL
Definition: ntddk_ex.h:94
NTSYSAPI BOOLEAN NTAPI RtlValidSecurityDescriptor(IN PSECURITY_DESCRIPTOR SecurityDescriptor)
Definition: sd.c:1054
#define STATUS_INVALID_SECURITY_DESCR
Definition: ntstatus.h:357
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO
Definition: wsk.h:409

Referenced by get_sd(), test_GetShellSecurityDescriptor(), and validate_default_security_descriptor().

◆ MakeAbsoluteSD2()

BOOL WINAPI MakeAbsoluteSD2 ( IN OUT PSECURITY_DESCRIPTOR  pSelfRelativeSecurityDescriptor,
OUT LPDWORD  lpdwBufferSize 
)

Definition at line 192 of file sec.c.

194{
196
197 Status = RtlSelfRelativeToAbsoluteSD2(pSelfRelativeSecurityDescriptor,
198 lpdwBufferSize);
199 if (!NT_SUCCESS(Status))
200 {
202 return FALSE;
203 }
204
205 return TRUE;
206}
NTSYSAPI NTSTATUS NTAPI RtlSelfRelativeToAbsoluteSD2(_Inout_ PSECURITY_DESCRIPTOR SelfRelativeSD, _Out_ PULONG BufferSize)

◆ MakeSelfRelativeSD()

BOOL WINAPI MakeSelfRelativeSD ( PSECURITY_DESCRIPTOR  pAbsoluteSecurityDescriptor,
PSECURITY_DESCRIPTOR  pSelfRelativeSecurityDescriptor,
LPDWORD  lpdwBufferLength 
)

Definition at line 214 of file sec.c.

217{
219
220 Status = RtlAbsoluteToSelfRelativeSD(pAbsoluteSecurityDescriptor,
221 pSelfRelativeSecurityDescriptor,
223 if (!NT_SUCCESS(Status))
224 {
226 return FALSE;
227 }
228
229 return TRUE;
230}
NTSYSAPI NTSTATUS NTAPI RtlAbsoluteToSelfRelativeSD(IN PSECURITY_DESCRIPTOR AbsoluteSecurityDescriptor, IN OUT PSECURITY_DESCRIPTOR SelfRelativeSecurityDescriptor, IN PULONG BufferLength)
Definition: sd.c:626
_In_ _In_opt_ _Out_writes_bytes_to_opt_ lpdwBufferLength _Inout_ LPDWORD lpdwBufferLength
Definition: winhttp.h:675

Referenced by ConvertToSelfRelative(), CreateDefaultProcessSecurityCommon(), CreateDhcpPipeSecurity(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), get_sd(), handle_getacl(), test_BuildSecurityDescriptorW(), and test_security_descriptor().

◆ QuerySecurityAccessMask()

VOID WINAPI QuerySecurityAccessMask ( IN SECURITY_INFORMATION  SecurityInformation,
OUT LPDWORD  DesiredAccess 
)

Definition at line 377 of file sec.c.

379{
380 *DesiredAccess = 0;
381
384 {
386 }
387
390}
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1340
#define ACCESS_SYSTEM_SECURITY
Definition: nt_native.h:77
#define READ_CONTROL
Definition: nt_native.h:58
_Must_inspect_result_ _In_ WDFDEVICE _In_ ULONG _In_ ACCESS_MASK DesiredAccess
Definition: wdfdevice.h:2658
#define DACL_SECURITY_INFORMATION
Definition: setypes.h:125
#define OWNER_SECURITY_INFORMATION
Definition: setypes.h:123
#define GROUP_SECURITY_INFORMATION
Definition: setypes.h:124
#define SACL_SECURITY_INFORMATION
Definition: setypes.h:126

Referenced by GetFileSecurityW().

◆ SetSecurityAccessMask()

VOID WINAPI SetSecurityAccessMask ( IN SECURITY_INFORMATION  SecurityInformation,
OUT LPDWORD  DesiredAccess 
)

Definition at line 398 of file sec.c.

Referenced by SetFileSecurityW().

◆ SetSecurityDescriptorControl()

BOOL WINAPI SetSecurityDescriptorControl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
SECURITY_DESCRIPTOR_CONTROL  ControlBitsOfInterest,
SECURITY_DESCRIPTOR_CONTROL  ControlBitsToSet 
)

Definition at line 238 of file sec.c.

241{
243
244 Status = RtlSetControlSecurityDescriptor(pSecurityDescriptor,
245 ControlBitsOfInterest,
246 ControlBitsToSet);
247 if (!NT_SUCCESS(Status))
248 {
250 return FALSE;
251 }
252
253 return TRUE;
254}
NTSYSAPI NTSTATUS NTAPI RtlSetControlSecurityDescriptor(_In_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ SECURITY_DESCRIPTOR_CONTROL ControlBitsOfInterest, _In_ SECURITY_DESCRIPTOR_CONTROL ControlBitsToSet)

Referenced by pSetSecurityInfoCheck().

◆ SetSecurityDescriptorDacl()

BOOL WINAPI SetSecurityDescriptorDacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
BOOL  bDaclPresent,
PACL  pDacl,
BOOL  bDaclDefaulted 
)

◆ SetSecurityDescriptorGroup()

BOOL WINAPI SetSecurityDescriptorGroup ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID  pGroup,
BOOL  bGroupDefaulted 
)

Definition at line 288 of file sec.c.

291{
293
294 Status = RtlSetGroupSecurityDescriptor(pSecurityDescriptor,
295 pGroup,
296 bGroupDefaulted);
297 if (!NT_SUCCESS(Status))
298 {
300 return FALSE;
301 }
302
303 return TRUE;
304}
NTSYSAPI NTSTATUS NTAPI RtlSetGroupSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSID Group, IN BOOLEAN GroupDefaulted)
Definition: sd.c:410

Referenced by CreateDefaultProcessSecurityCommon(), CreateDhcpPipeSecurity(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), DwInitializeSdFromThreadToken(), get_sd(), handle_getacl(), pSetSecurityInfoCheck(), test_AccessCheck(), test_ConvertSecurityDescriptorToString(), test_process_security(), and test_security_info().

◆ SetSecurityDescriptorOwner()

BOOL WINAPI SetSecurityDescriptorOwner ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
PSID  pOwner,
BOOL  bOwnerDefaulted 
)

Definition at line 312 of file sec.c.

315{
317
318 Status = RtlSetOwnerSecurityDescriptor(pSecurityDescriptor,
319 pOwner,
320 bOwnerDefaulted);
321 if (!NT_SUCCESS(Status))
322 {
324 return FALSE;
325 }
326
327 return TRUE;
328}
NTSYSAPI NTSTATUS WINAPI RtlSetOwnerSecurityDescriptor(PSECURITY_DESCRIPTOR, PSID, BOOLEAN)

Referenced by CreateDefaultProcessSecurityCommon(), CreateDhcpPipeSecurity(), CreatePnpInstallEventSecurity(), CreatePowrProfSemaphoreSecurity(), DwInitializeSdFromThreadToken(), get_sd(), handle_getacl(), pSetSecurityInfoCheck(), TakeOwnershipOfFile(), test_AccessCheck(), test_ConvertSecurityDescriptorToString(), test_process_security(), and test_security_info().

◆ SetSecurityDescriptorRMControl()

DWORD WINAPI SetSecurityDescriptorRMControl ( PSECURITY_DESCRIPTOR  SecurityDescriptor,
PUCHAR  RMControl 
)

Definition at line 336 of file sec.c.

338{
340 RMControl);
341
342 return ERROR_SUCCESS;
343}
NTSYSAPI VOID NTAPI RtlSetSecurityDescriptorRMControl(_Inout_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ PUCHAR RMControl)

◆ SetSecurityDescriptorSacl()

BOOL WINAPI SetSecurityDescriptorSacl ( PSECURITY_DESCRIPTOR  pSecurityDescriptor,
BOOL  bSaclPresent,
PACL  pSacl,
BOOL  bSaclDefaulted 
)

Definition at line 351 of file sec.c.

355{
357
358 Status = RtlSetSaclSecurityDescriptor(pSecurityDescriptor,
359 bSaclPresent,
360 pSacl,
361 bSaclDefaulted);
362 if (!NT_SUCCESS(Status))
363 {
365 return FALSE;
366 }
367
368 return TRUE;
369}
NTSYSAPI NTSTATUS NTAPI RtlSetSaclSecurityDescriptor(IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN BOOLEAN SaclPresent, IN PACL Sacl, IN BOOLEAN SaclDefaulted)
Definition: sd.c:342

Referenced by get_sd(), pSetSecurityInfoCheck(), test_AddMandatoryAce(), test_ConvertSecurityDescriptorToString(), and test_token_security_descriptor().

◆ WINE_DEFAULT_DEBUG_CHANNEL()

WINE_DEFAULT_DEBUG_CHANNEL ( advapi  )