implemented GetExplicitEntriesFromAcl and forward it to the MARTA provider

svn path=/trunk/; revision=16816
This commit is contained in:
Thomas Bluemel 2005-07-27 20:24:11 +00:00
parent 6870957b9a
commit 9dabbd25fc
6 changed files with 49 additions and 5 deletions

View file

@ -242,8 +242,8 @@ GetCurrentHwProfileW@4
;GetEffectiveRightsFromAclA@12
;GetEffectiveRightsFromAclW@12
;GetEventLogInformation
;GetExplicitEntriesFromAclA@12
;GetExplicitEntriesFromAclW@12
GetExplicitEntriesFromAclA@12=ADVAPI32.GetExplicitEntriesFromAclW
GetExplicitEntriesFromAclW@12
GetFileSecurityA@20
GetFileSecurityW@20
;GetInformationCodeAuthzLevelW

View file

@ -67,7 +67,10 @@ typedef struct _NTMARTA
PACL OldAcl,
PACL* NewAcl);
PVOID RewriteGetExplicitEntriesFromAcl;
DWORD (STDCALL *RewriteGetExplicitEntriesFromAcl)(PACL pacl,
PULONG pcCountOfExplicitEntries,
PEXPLICIT_ACCESS_W* pListOfExplicitEntries);
PVOID TreeResetNamedSecurityInfo;
DWORD (STDCALL *GetInheritanceSource)(LPWSTR pObjectName,

View file

@ -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 */

View file

@ -59,8 +59,8 @@ LoadAndInitializeNtMarta(VOID)
FindNtMartaProc(RewriteGetHandleRights);
FindNtMartaProc(RewriteSetHandleRights);
FindNtMartaProc(RewriteSetEntriesInAcl);
#if 0
FindNtMartaProc(RewriteGetExplicitEntriesFromAcl);
#if 0
FindNtMartaProc(TreeResetNamedSecurityInfo);
#endif
FindNtMartaProc(GetInheritanceSource);

View file

@ -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
DllMain(IN HINSTANCE hinstDLL,
IN DWORD dwReason,

View file

@ -4,7 +4,7 @@ EXPORTS
AccFreeIndexArray@12
AccGetInheritanceSource@40
;AccProvHandleGrantAccessRights;
;AccRewriteGetExplicitEntriesFromAcl
AccRewriteGetExplicitEntriesFromAcl@12
AccRewriteGetHandleRights@32
AccRewriteGetNamedRights@32
AccRewriteSetEntriesInAcl@16