Home
last modified time | relevance | path

Searched refs:AclSize (Results 1 – 25 of 30) sorted by relevance

12

/reactos/modules/rostests/apitests/ntdll/
H A DRtlDeleteAce.c18 ULONG AclSize; in MakeAcl() local
24 AclSize = sizeof(ACL); in MakeAcl()
29 AclSize += AceSizes[i]; in MakeAcl()
33 Acl = AllocateGuarded(AclSize); in MakeAcl()
42 Acl->AclSize = AclSize; in MakeAcl()
75 ok(Acl->AclSize == sizeof(ACL), "AclSize = %u\n", Acl->AclSize); in START_TEST()
100 ok(Acl->AclSize == sizeof(ACL) + AceSize, "AclSize = %u\n", Acl->AclSize); in START_TEST()
107 ok(Acl->AclSize == sizeof(ACL) + AceSize, "AclSize = %u\n", Acl->AclSize); in START_TEST()
114 ok(Acl->AclSize == sizeof(ACL) + AceSize, "AclSize = %u\n", Acl->AclSize); in START_TEST()
140 ok(Acl->AclSize == sizeof(ACL) + 4 * AceSize + 24, "AclSize = %u\n", Acl->AclSize); in START_TEST()
[all …]
H A DRtlFirstFreeAce.c18 ULONG AclSize; in MakeAcl() local
24 AclSize = sizeof(ACL); in MakeAcl()
29 AclSize += AceSizes[i]; in MakeAcl()
33 Acl = AllocateGuarded(AclSize); in MakeAcl()
42 Acl->AclSize = AclSize; in MakeAcl()
74 Acl->AclSize = sizeof(ACL) - 1; in START_TEST()
83 Acl->AclSize = sizeof(ACL); in START_TEST()
103 Acl->AclSize = sizeof(ACL); in START_TEST()
110 Acl->AclSize = sizeof(ACL) + 1; in START_TEST()
137 Acl->AclSize = sizeof(ACL); in START_TEST()
[all …]
/reactos/sdk/lib/rtl/
H A Dacl.c33 AclEnd = (ULONG_PTR)Acl + Acl->AclSize; in RtlFirstFreeAce()
542 if ((ULONG_PTR)*Ace >= (ULONG_PTR)Acl + Acl->AclSize) in RtlGetAce()
552 if ((ULONG_PTR)*Ace >= (ULONG_PTR)Acl + Acl->AclSize) in RtlGetAce()
678 IN ULONG AclSize, in RtlCreateAcl() argument
684 if (AclSize < sizeof(ACL)) return STATUS_BUFFER_TOO_SMALL; in RtlCreateAcl()
689 (AclSize > MAXUSHORT)) in RtlCreateAcl()
695 Acl->AclSize = (USHORT)ROUND_UP(AclSize, 4); in RtlCreateAcl()
766 SizeInfo->AclBytesInUse = Acl->AclSize; in RtlQueryInformationAcl()
858 if (ROUND_DOWN(Acl->AclSize, sizeof(USHORT)) != Acl->AclSize) in RtlValidAcl()
865 if (Acl->AclSize < sizeof(ACL)) in RtlValidAcl()
[all …]
H A Dsd.c88 *DaclSize = ROUND_UP((*Dacl)->AclSize, sizeof(ULONG)); in RtlpQuerySecurityDescriptor()
101 *SaclSize = ROUND_UP((*Sacl)->AclSize, sizeof(ULONG)); in RtlpQuerySecurityDescriptor()
186 if (Dacl) Length += ROUND_UP(Dacl->AclSize, sizeof(ULONG)); in RtlLengthSecurityDescriptor()
188 if (Sacl) Length += ROUND_UP(Sacl->AclSize, sizeof(ULONG)); in RtlLengthSecurityDescriptor()
822 RtlMoveMemory(Dacl, pDacl, pDacl->AclSize); in RtlSelfRelativeToAbsoluteSD()
830 RtlMoveMemory(Sacl, pSacl, pSacl->AclSize); in RtlSelfRelativeToAbsoluteSD()
1180 if (!(RtlValidAcl(Dacl)) || (Length < Dacl->AclSize)) return FALSE; in RtlValidRelativeSecurityDescriptor()
1198 if (!(RtlValidAcl(Sacl)) || (Length < Sacl->AclSize)) return FALSE; in RtlValidRelativeSecurityDescriptor()
H A Dsecurity.c105 ulDaclSize = pDacl->AclSize; in RtlpSetSecurityObject()
130 ulSaclSize = pSacl->AclSize; in RtlpSetSecurityObject()
244 ULONG AclSize; in RtlDefaultNpAcl() local
316 AclSize = sizeof(ACL) + // Header in RtlDefaultNpAcl()
324 *pAcl = RtlAllocateHeap(RtlGetProcessHeap(), 0, AclSize); in RtlDefaultNpAcl()
334 Status = RtlCreateAcl(*pAcl, AclSize, ACL_REVISION2); in RtlDefaultNpAcl()
/reactos/ntoskrnl/se/
H A Dacl.c360 ULONG AclSize; in SepCaptureAcl() local
380 AclSize = InputAcl->AclSize; in SepCaptureAcl()
382 AclSize, in SepCaptureAcl()
393 if (AclSize < sizeof(ACL)) in SepCaptureAcl()
397 AclSize, in SepCaptureAcl()
416 AclSize = InputAcl->AclSize; in SepCaptureAcl()
419 if (AclSize < sizeof(ACL)) in SepCaptureAcl()
423 AclSize, in SepCaptureAcl()
428 RtlCopyMemory(NewAcl, InputAcl, AclSize); in SepCaptureAcl()
611 ASSERT(AclSource->AclSize % sizeof(ULONG) == 0); in _Out_writes_bytes_opt_()
[all …]
H A Dtokencls.c276 RequiredLength += Token->DefaultDacl->AclSize;
291 Token->DefaultDacl->AclSize);
711 RequiredLength += Token->DefaultDacl->AclSize; in NtQueryInformationToken()
722 Token->DefaultDacl->AclSize); in NtQueryInformationToken()
1230 ULONG AclSize; in NtSetInformationToken() local
1262 AclSize = Token->DefaultDacl ? Token->DefaultDacl->AclSize : 0; in NtSetInformationToken()
1263 NewDynamicLength = RtlLengthSid(CapturedSid) + AclSize; in NtSetInformationToken()
1320 PrimaryGroup = (ULONG_PTR)(Token->DynamicPart) + AclSize; in NtSetInformationToken()
1430 Token->DynamicAvailable -= CapturedAcl->AclSize; in NtSetInformationToken()
1436 CapturedAcl->AclSize); in NtSetInformationToken()
[all …]
H A Dsd.c344 if (ProcessorMode == KernelMode) return Acl->AclSize; in DetermineACLSize()
347 Size = ProbeForReadUshort(&Acl->AclSize); in DetermineACLSize()
667 DaclLength = ROUND_UP((ULONG)Dacl->AclSize, 4); in _IRQL_requires_max_()
679 SaclLength = ROUND_UP(Sacl->AclSize, 4); in _IRQL_requires_max_()
947 DaclLength = Dacl ? ROUND_UP((ULONG)Dacl->AclSize, 4) : 0; in _IRQL_requires_max_()
960 SaclLength = Sacl ? ROUND_UP((ULONG)Sacl->AclSize, 4) : 0; in _IRQL_requires_max_()
1147 SdLength += Acl->AclSize; in SeValidSecurityDescriptor()
1181 SdLength += Acl->AclSize; in SeValidSecurityDescriptor()
1674 *QuotaInfoSize += ALIGN_UP_BY(Dacl->AclSize, sizeof(ULONG)); in _IRQL_requires_max_()
H A Dtokenlif.c187 DynamicPartSize = DefaultDacl ? DefaultDacl->AclSize : 0; in SepCreateToken()
405 DefaultDacl->AclSize); in SepCreateToken()
499 DynamicPartSize = Token->DefaultDacl ? Token->DefaultDacl->AclSize : 0; in SepDuplicateToken()
703 Token->DefaultDacl->AclSize); in SepDuplicateToken()
939 DynamicPartSize = Token->DefaultDacl ? Token->DefaultDacl->AclSize : 0;
1207 Token->DefaultDacl->AclSize);
H A Ddebug.c146 DbgPrint("Acl->AclSize -> %u\n", Acl->AclSize); in SepDumpAclInfo()
H A Dtoken.c679 DynamicAvailable -= DefaultDacl->AclSize; in SepComputeAvailableDynamicSpace()
736 CurrentDynamicLength += AccessToken->DefaultDacl->AclSize; in SepRebuildDynamicPartOfToken()
/reactos/modules/rostests/kmtests/ntos_se/
H A DSeHelpers.c152 KmtOk(Acl->AclSize >= sizeof(*Acl), FileAndLine, "AclSize too small: %u\n", Acl->AclSize); in VCheckAcl__()
157 …KmtOk(Acl->AclSize >= Offset + sizeof(*AceHeader), FileAndLine, "AclSize too small (%u) at Offset … in VCheckAcl__()
158 if (Acl->AclSize < Offset + sizeof(*AceHeader)) in VCheckAcl__()
163 …KmtOk(Acl->AclSize >= Offset + AceHeader->AceSize, FileAndLine, "[%lu] AclSize too small (%u) at O… in VCheckAcl__()
164 if (Acl->AclSize < Offset + AceHeader->AceSize) in VCheckAcl__()
H A DSeInheritance.c32 ULONG AclSize; in TestSeAssignSecurity() local
224 Acl = ExAllocatePoolWithTag(PagedPool, AclSize, 'ASmK'); in TestSeAssignSecurity()
228 Acl2 = ExAllocatePoolWithTag(PagedPool, AclSize, 'ASmK'); in TestSeAssignSecurity()
238 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
274 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
314 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
350 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
712 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
744 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
786 Status = RtlCreateAcl(Acl, AclSize, ACL_REVISION); in TestSeAssignSecurity()
[all …]
/reactos/ntoskrnl/config/
H A Dcmse.c147 ULONG AclSize; in CmpQuerySecurityDescriptor() local
184 AclSize = sizeof(ACL) + sizeof(ACE) + SidSize; in CmpQuerySecurityDescriptor()
185 SdSize += AclSize; in CmpQuerySecurityDescriptor()
224 AclSize, in CmpQuerySecurityDescriptor()
/reactos/ntoskrnl/ob/
H A Dobinit.c69 ULONG AclSize, SdSize; in ObpCreateKernelObjectsSD() local
72 AclSize = sizeof(ACL) + in ObpCreateKernelObjectsSD()
77 SdSize = sizeof(SECURITY_DESCRIPTOR) + AclSize; in ObpCreateKernelObjectsSD()
95 RtlCreateAcl(Dacl, AclSize, ACL_REVISION); in ObpCreateKernelObjectsSD()
H A Dobname.c43 ULONG AclSize; in ObpGetDosDevicesProtection() local
52 AclSize = sizeof(ACL) + in ObpGetDosDevicesProtection()
61 Dacl = ExAllocatePoolWithTag(PagedPool, AclSize, TAG_DACL); in ObpGetDosDevicesProtection()
68 Status = RtlCreateAcl(Dacl, AclSize, ACL_REVISION); in ObpGetDosDevicesProtection()
114 AclSize = sizeof(ACL) + in ObpGetDosDevicesProtection()
120 Dacl = ExAllocatePoolWithTag(PagedPool, AclSize, TAG_DACL); in ObpGetDosDevicesProtection()
127 Status = RtlCreateAcl(Dacl, AclSize, ACL_REVISION); in ObpGetDosDevicesProtection()
/reactos/dll/win32/netapi32/
H A Duser.c85 ACL_SIZE_INFORMATION AclSize; in GetAllowedWorldAce() local
98 &AclSize, in GetAllowedWorldAce()
99 sizeof(AclSize), in GetAllowedWorldAce()
104 for (i = 0; i < AclSize.AceCount; i++) in GetAllowedWorldAce()
293 ACL_SIZE_INFORMATION AclSize; in GetUserDacl() local
330 &AclSize, in GetUserDacl()
331 sizeof(AclSize), in GetUserDacl()
340 LocalDacl = HeapAlloc(GetProcessHeap(), 0, AclSize.AclBytesInUse); in GetUserDacl()
348 RtlCopyMemory(LocalDacl, SamDacl, AclSize.AclBytesInUse); in GetUserDacl()
/reactos/sdk/include/reactos/idl/
H A Dms-dtyp.idl296 USHORT AclSize;
H A Dlsa.idl32 WORD AclSize;
33 [size_is(AclSize - 4)] BYTE Dummy1[*];
/reactos/modules/rostests/tests/tokentest/
H A Dtokentest.c65 ULONG AclSize,
/reactos/ntoskrnl/io/iomgr/
H A Ddevice.c830 Dacl = ExAllocatePoolWithTag(PagedPool, SePublicDefaultUnrestrictedDacl->AclSize, 'eSoI'); in IopCreateDefaultDeviceSecurityDescriptor()
837 RtlCopyMemory(Dacl, SePublicDefaultUnrestrictedDacl, SePublicDefaultUnrestrictedDacl->AclSize); in IopCreateDefaultDeviceSecurityDescriptor()
/reactos/ntoskrnl/include/internal/
H A Dse.h694 _In_reads_bytes_(AclSource->AclSize) PACL AclSource,
/reactos/sdk/include/xdk/
H A Dsetypes.h52 $USHORT AclSize; member
/reactos/base/services/nfsd/
H A Dacl.c641 (unsigned char *)acl, acl->AclSize); in map_dacl_2_nfs4acl()
/reactos/modules/rostests/winetests/ntdll/
H A Dgenerated.c324 TEST_FIELD_SIZE (ACL, AclSize, 2) in test_pack_ACL()
325 TEST_FIELD_ALIGN (ACL, AclSize, 2) in test_pack_ACL()
326 TEST_FIELD_OFFSET(ACL, AclSize, 2) in test_pack_ACL()
3741 TEST_FIELD_SIZE (ACL, AclSize, 2) in test_pack_ACL()
3742 TEST_FIELD_ALIGN (ACL, AclSize, 2) in test_pack_ACL()
3743 TEST_FIELD_OFFSET(ACL, AclSize, 2) in test_pack_ACL()

12