mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 10:04:49 +00:00
implemented GetExplicitEntriesFromAcl and forward it to the MARTA provider
svn path=/trunk/; revision=16816
This commit is contained in:
parent
6870957b9a
commit
9dabbd25fc
6 changed files with 49 additions and 5 deletions
|
@ -242,8 +242,8 @@ GetCurrentHwProfileW@4
|
||||||
;GetEffectiveRightsFromAclA@12
|
;GetEffectiveRightsFromAclA@12
|
||||||
;GetEffectiveRightsFromAclW@12
|
;GetEffectiveRightsFromAclW@12
|
||||||
;GetEventLogInformation
|
;GetEventLogInformation
|
||||||
;GetExplicitEntriesFromAclA@12
|
GetExplicitEntriesFromAclA@12=ADVAPI32.GetExplicitEntriesFromAclW
|
||||||
;GetExplicitEntriesFromAclW@12
|
GetExplicitEntriesFromAclW@12
|
||||||
GetFileSecurityA@20
|
GetFileSecurityA@20
|
||||||
GetFileSecurityW@20
|
GetFileSecurityW@20
|
||||||
;GetInformationCodeAuthzLevelW
|
;GetInformationCodeAuthzLevelW
|
||||||
|
|
|
@ -67,7 +67,10 @@ typedef struct _NTMARTA
|
||||||
PACL OldAcl,
|
PACL OldAcl,
|
||||||
PACL* NewAcl);
|
PACL* NewAcl);
|
||||||
|
|
||||||
PVOID RewriteGetExplicitEntriesFromAcl;
|
DWORD (STDCALL *RewriteGetExplicitEntriesFromAcl)(PACL pacl,
|
||||||
|
PULONG pcCountOfExplicitEntries,
|
||||||
|
PEXPLICIT_ACCESS_W* pListOfExplicitEntries);
|
||||||
|
|
||||||
PVOID TreeResetNamedSecurityInfo;
|
PVOID TreeResetNamedSecurityInfo;
|
||||||
|
|
||||||
DWORD (STDCALL *GetInheritanceSource)(LPWSTR pObjectName,
|
DWORD (STDCALL *GetInheritanceSource)(LPWSTR pObjectName,
|
||||||
|
|
|
@ -669,4 +669,30 @@ SetEntriesInAclA(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* @implemented
|
||||||
|
*/
|
||||||
|
DWORD
|
||||||
|
STDCALL
|
||||||
|
GetExplicitEntriesFromAclW(
|
||||||
|
PACL pacl,
|
||||||
|
PULONG pcCountOfExplicitEntries,
|
||||||
|
PEXPLICIT_ACCESS_W* pListOfExplicitEntries
|
||||||
|
)
|
||||||
|
{
|
||||||
|
DWORD ErrorCode;
|
||||||
|
|
||||||
|
ErrorCode = CheckNtMartaPresent();
|
||||||
|
if (ErrorCode == ERROR_SUCCESS)
|
||||||
|
{
|
||||||
|
/* call the MARTA provider */
|
||||||
|
ErrorCode = AccRewriteGetExplicitEntriesFromAcl(pacl,
|
||||||
|
pcCountOfExplicitEntries,
|
||||||
|
pListOfExplicitEntries);
|
||||||
|
}
|
||||||
|
|
||||||
|
return ErrorCode;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* EOF */
|
/* EOF */
|
||||||
|
|
|
@ -59,8 +59,8 @@ LoadAndInitializeNtMarta(VOID)
|
||||||
FindNtMartaProc(RewriteGetHandleRights);
|
FindNtMartaProc(RewriteGetHandleRights);
|
||||||
FindNtMartaProc(RewriteSetHandleRights);
|
FindNtMartaProc(RewriteSetHandleRights);
|
||||||
FindNtMartaProc(RewriteSetEntriesInAcl);
|
FindNtMartaProc(RewriteSetEntriesInAcl);
|
||||||
#if 0
|
|
||||||
FindNtMartaProc(RewriteGetExplicitEntriesFromAcl);
|
FindNtMartaProc(RewriteGetExplicitEntriesFromAcl);
|
||||||
|
#if 0
|
||||||
FindNtMartaProc(TreeResetNamedSecurityInfo);
|
FindNtMartaProc(TreeResetNamedSecurityInfo);
|
||||||
#endif
|
#endif
|
||||||
FindNtMartaProc(GetInheritanceSource);
|
FindNtMartaProc(GetInheritanceSource);
|
||||||
|
|
|
@ -158,6 +158,21 @@ AccFreeIndexArray(PINHERITED_FROMW pInheritArray,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**********************************************************************
|
||||||
|
* AccRewriteGetExplicitEntriesFromAcl EXPORTED
|
||||||
|
*
|
||||||
|
* @unimplemented
|
||||||
|
*/
|
||||||
|
DWORD STDCALL
|
||||||
|
AccRewriteGetExplicitEntriesFromAcl(PACL pacl,
|
||||||
|
PULONG pcCountOfExplicitEntries,
|
||||||
|
PEXPLICIT_ACCESS_W* pListOfExplicitEntries)
|
||||||
|
{
|
||||||
|
UNIMPLEMENTED;
|
||||||
|
return ERROR_CALL_NOT_IMPLEMENTED;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
BOOL STDCALL
|
BOOL STDCALL
|
||||||
DllMain(IN HINSTANCE hinstDLL,
|
DllMain(IN HINSTANCE hinstDLL,
|
||||||
IN DWORD dwReason,
|
IN DWORD dwReason,
|
||||||
|
|
|
@ -4,7 +4,7 @@ EXPORTS
|
||||||
AccFreeIndexArray@12
|
AccFreeIndexArray@12
|
||||||
AccGetInheritanceSource@40
|
AccGetInheritanceSource@40
|
||||||
;AccProvHandleGrantAccessRights;
|
;AccProvHandleGrantAccessRights;
|
||||||
;AccRewriteGetExplicitEntriesFromAcl
|
AccRewriteGetExplicitEntriesFromAcl@12
|
||||||
AccRewriteGetHandleRights@32
|
AccRewriteGetHandleRights@32
|
||||||
AccRewriteGetNamedRights@32
|
AccRewriteGetNamedRights@32
|
||||||
AccRewriteSetEntriesInAcl@16
|
AccRewriteSetEntriesInAcl@16
|
||||||
|
|
Loading…
Reference in a new issue