Home
last modified time | relevance | path

Searched refs:PrivilegeSet (Results 1 – 20 of 20) sorted by relevance

/reactos/modules/rostests/apitests/ntdll/
H A DNtAccessCheckByType.c72 PPRIVILEGE_SET PrivilegeSet = NULL; in ParamsValidationTests() local
95 if (PrivilegeSet == NULL) in ParamsValidationTests()
351 if (PrivilegeSet) in ParamsValidationTests()
374 if (PrivilegeSet == NULL) in AccessGrantedNoDaclTests()
518 if (PrivilegeSet) in AccessGrantedNoDaclTests()
543 if (PrivilegeSet == NULL) in AccessGrantedTests()
771 if (PrivilegeSet) in AccessGrantedTests()
800 if (PrivilegeSet == NULL) in AccessGrantedMultipleObjectsTests()
1122 if (PrivilegeSet) in AccessGrantedMultipleObjectsTests()
1147 if (PrivilegeSet == NULL) in DenyAccessTests()
[all …]
H A DNtAccessCheckByTypeResultList.c72 PPRIVILEGE_SET PrivilegeSet = NULL; in ParamValidationNoObjsList() local
79 if (PrivilegeSet == NULL) in ParamValidationNoObjsList()
111 PrivilegeSet, in ParamValidationNoObjsList()
123 if (PrivilegeSet) in ParamValidationNoObjsList()
125 RtlFreeHeap(RtlGetProcessHeap(), 0, PrivilegeSet); in ParamValidationNoObjsList()
153 PPRIVILEGE_SET PrivilegeSet = NULL; in GrantedAccessTests() local
170 if (PrivilegeSet == NULL) in GrantedAccessTests()
425 if (PrivilegeSet) in GrantedAccessTests()
438 PPRIVILEGE_SET PrivilegeSet = NULL; in DenyAccessTests() local
455 if (PrivilegeSet == NULL) in DenyAccessTests()
[all …]
H A DNtAccessCheck.c64 PPRIVILEGE_SET PrivilegeSet = NULL; in AccessCheckEmptyMappingTest() local
76 PrivilegeSet = RtlAllocateHeap(RtlGetProcessHeap(), 0, PrivilegeSetLength); in AccessCheckEmptyMappingTest()
77 if (PrivilegeSet == NULL) in AccessCheckEmptyMappingTest()
155 PrivilegeSet, in AccessCheckEmptyMappingTest()
179 if (PrivilegeSet) in AccessCheckEmptyMappingTest()
181 RtlFreeHeap(RtlGetProcessHeap(), 0, PrivilegeSet); in AccessCheckEmptyMappingTest()
H A DNtLoadUnloadKey.c414 BOOLEAN PrivilegeSet[2] = {FALSE, FALSE}; in START_TEST() local
423 Status = RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, TRUE, FALSE, &PrivilegeSet[0]); in START_TEST()
434 Status = RtlAdjustPrivilege(SE_BACKUP_PRIVILEGE, TRUE, FALSE, &PrivilegeSet[1]); in START_TEST()
438 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in START_TEST()
624 RtlAdjustPrivilege(SE_BACKUP_PRIVILEGE, PrivilegeSet[1], FALSE, &PrivilegeSet[1]); in START_TEST()
625 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in START_TEST()
/reactos/ntoskrnl/se/
H A Dpriv.c253 PPRIVILEGE_SET PrivilegeSet; in SePrivilegePolicyCheck() local
309 *OutPrivilegeSet = PrivilegeSet; in SePrivilegePolicyCheck()
310 if (PrivilegeSet == NULL) in SePrivilegePolicyCheck()
316 PrivilegeSet->Control = 0; in SePrivilegePolicyCheck()
364 PRIVILEGE_SET PrivilegeSet; in SeCheckAuditPrivilege() local
369 PrivilegeSet.PrivilegeCount = 1; in SeCheckAuditPrivilege()
372 PrivilegeSet.Privilege[0].Attributes = 0; in SeCheckAuditPrivilege()
595 PPRIVILEGE_SET PrivilegeSet; in SeAppendPrivileges() local
617 if (PrivilegeSet == NULL) in SeAppendPrivileges()
621 RtlCopyMemory(PrivilegeSet, in SeAppendPrivileges()
[all …]
H A Daccesschk.c1483 _In_ PPRIVILEGE_SET PrivilegeSet) in SepGetPrivilegeSetLength() argument
1485 if (PrivilegeSet == NULL) in SepGetPrivilegeSetLength()
1488 if (PrivilegeSet->PrivilegeCount == 0) in SepGetPrivilegeSetLength()
1598 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet, in SepAccessCheck()
1647 ProbeForWrite(PrivilegeSet, *PrivilegeSetLength, sizeof(ULONG)); in SepAccessCheck()
1783 RtlCopyMemory(PrivilegeSet, in SepAccessCheck()
1804 PrivilegeSet->PrivilegeCount = 0; in SepAccessCheck()
1805 PrivilegeSet->Control = 0; in SepAccessCheck()
2232 PrivilegeSet, in NtAccessCheck()
2275 PrivilegeSet, in NtAccessCheckByType()
[all …]
H A Daudit.c372 _In_ PPRIVILEGE_SET PrivilegeSet, in SePrivilegedServiceAuditAlarm() argument
409 PrivilegeSet, in SePrivilegedServiceAuditAlarm()
1631 _In_opt_ PPRIVILEGE_SET PrivilegeSet, in NtOpenObjectAuditAlarm() argument
1715 if (PrivilegeSet != NULL) in NtOpenObjectAuditAlarm()
1718 ProbeForRead(PrivilegeSet, sizeof(PRIVILEGE_SET), sizeof(ULONG)); in NtOpenObjectAuditAlarm()
1721 PrivilegeCount = PrivilegeSet->PrivilegeCount; in NtOpenObjectAuditAlarm()
1732 ProbeForRead(PrivilegeSet, PrivilegeSetSize, sizeof(ULONG)); in NtOpenObjectAuditAlarm()
1746 RtlCopyMemory(CapturedPrivilegeSet, PrivilegeSet, PrivilegeSetSize); in NtOpenObjectAuditAlarm()
/reactos/base/setup/lib/
H A Dregistry.c608 BOOLEAN PrivilegeSet[2] = {FALSE, FALSE}; in VerifyRegistryHives() local
628 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in VerifyRegistryHives()
672 RtlAdjustPrivilege(SE_BACKUP_PRIVILEGE, PrivilegeSet[1], FALSE, &PrivilegeSet[1]); in VerifyRegistryHives()
673 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in VerifyRegistryHives()
686 BOOLEAN PrivilegeSet[2] = {FALSE, FALSE}; in RegInitializeRegistry() local
704 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in RegInitializeRegistry()
990 RtlAdjustPrivilege(SE_BACKUP_PRIVILEGE, PrivilegeSet[1], FALSE, &PrivilegeSet[1]); in RegInitializeRegistry()
991 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in RegInitializeRegistry()
1023 RtlAdjustPrivilege(SE_RESTORE_PRIVILEGE, PrivilegeSet[0], FALSE, &PrivilegeSet[0]); in RegCleanupRegistry()
1126 RtlAdjustPrivilege(SE_BACKUP_PRIVILEGE, PrivilegeSet[1], FALSE, &PrivilegeSet[1]); in RegCleanupRegistry()
[all …]
/reactos/dll/win32/lsasrv/
H A Dlsarpc.c1539 if (PrivilegeSet == NULL) in LsarEnumeratePrivilegesAccount()
1549 MIDL_user_free(PrivilegeSet); in LsarEnumeratePrivilegesAccount()
1554 *Privileges = PrivilegeSet; in LsarEnumeratePrivilegesAccount()
2588 PPRIVILEGE_SET PrivilegeSet; in LsarEnumerateAccountsWithUserRight() local
2928 if (PrivilegeSet) in LsarEnumerateAccountRights()
2991 if (PrivilegeSet != NULL) in LsarEnumerateAccountRights()
3109 if (PrivilegeSet == NULL) in LsarAddAccountRights()
3148 RtlCopyMemory(&(PrivilegeSet->Privilege[PrivilegeSet->PrivilegeCount]), in LsarAddAccountRights()
3201 if (PrivilegeSet != NULL) in LsarAddAccountRights()
3338 RtlZeroMemory(&(PrivilegeSet->Privilege[PrivilegeSet->PrivilegeCount - 1]), in LsarRemoveAccountRights()
[all …]
/reactos/drivers/filesystems/fastfat/
H A Dacchksup.c202 PRIVILEGE_SET PrivilegeSet; in FatCheckManageVolumeAccess() local
206 PrivilegeSet.PrivilegeCount = 1; in FatCheckManageVolumeAccess()
207 PrivilegeSet.Control = PRIVILEGE_SET_ALL_NECESSARY; in FatCheckManageVolumeAccess()
208 PrivilegeSet.Privilege[0].Luid = RtlConvertLongToLuid( SE_MANAGE_VOLUME_PRIVILEGE ); in FatCheckManageVolumeAccess()
209 PrivilegeSet.Privilege[0].Attributes = 0; in FatCheckManageVolumeAccess()
211 if (SePrivilegeCheck( &PrivilegeSet, in FatCheckManageVolumeAccess()
/reactos/sdk/include/ndk/
H A Dsefuncs.h93 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet,
110 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet,
127 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet,
341 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet,
/reactos/dll/win32/advapi32/token/
H A Dtoken.c29 PRIVILEGE_SET PrivilegeSet; in CheckTokenMembership() member
171 &PrivBuffer.PrivilegeSet, in CheckTokenMembership()
/reactos/dll/win32/advapi32/misc/
H A Dlogon.c490 BOOLEAN PrivilegeSet; in InsertTokenToProcessCommon() local
497 PrivilegeSet = FALSE; in InsertTokenToProcessCommon()
534 TRUE, TRUE, &PrivilegeSet); in InsertTokenToProcessCommon()
561 PrivilegeSet, TRUE, &PrivilegeSet); in InsertTokenToProcessCommon()
/reactos/dll/win32/advapi32/wine/
H A Dsecurity.c1654 OUT PPRIVILEGE_SET PrivilegeSet OPTIONAL, in AccessCheck()
1667 PrivilegeSet, in AccessCheck()
1775 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet, in AccessCheckByType()
1790 PrivilegeSet, in AccessCheckByType()
1889 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet, in AccessCheckByTypeResultList()
1905 PrivilegeSet, in AccessCheckByTypeResultList()
/reactos/dll/win32/advapi32/sec/
H A Dlsa.c142 IN PPRIVILEGE_SET PrivilegeSet) in LsaAddPrivilegesToAccount() argument
147 AccountHandle, PrivilegeSet); in LsaAddPrivilegesToAccount()
152 (PLSAPR_PRIVILEGE_SET)PrivilegeSet); in LsaAddPrivilegesToAccount()
/reactos/ntoskrnl/ob/
H A Dobsecure.c402 PrivilegeSet, in ObpCheckObjectReference()
/reactos/ntoskrnl/include/internal/
H A Dse.h811 _In_ PPRIVILEGE_SET PrivilegeSet,
/reactos/sdk/include/xdk/
H A Dsetypes.h239 PRIVILEGE_SET PrivilegeSet; member
/reactos/modules/rostests/winetests/advapi32/
H A Dsecurity.c3181 PRIVILEGE_SET *PrivilegeSet; in test_impersonation_level() local
3240PrivilegeSet = HeapAlloc(GetProcessHeap(), 0, FIELD_OFFSET(PRIVILEGE_SET, Privilege[Privileges->Pr… in test_impersonation_level()
3241 PrivilegeSet->PrivilegeCount = Privileges->PrivilegeCount; in test_impersonation_level()
3242 …memcpy(PrivilegeSet->Privilege, Privileges->Privileges, PrivilegeSet->PrivilegeCount * sizeof(Priv… in test_impersonation_level()
3243 PrivilegeSet->Control = PRIVILEGE_SET_ALL_NECESSARY; in test_impersonation_level()
3246 ret = PrivilegeCheck(Token, PrivilegeSet, &AccessGranted); in test_impersonation_level()
3263 ret = PrivilegeCheck(Token, PrivilegeSet, &AccessGranted); in test_impersonation_level()
3275 ret = PrivilegeCheck(Token, PrivilegeSet, &AccessGranted); in test_impersonation_level()
3282 HeapFree(GetProcessHeap(), 0, PrivilegeSet); in test_impersonation_level()
/reactos/sdk/include/psdk/
H A Dwinbase.h1596 _Out_writes_bytes_(*PrivilegeSetLength)PPRIVILEGE_SET PrivilegeSet,
1611 _Out_writes_bytes_(*PrivilegeSetLength) PPRIVILEGE_SET PrivilegeSet,