[PATCH] wbemprox: Return WBEM_E_ACCESS_DENIED from IEnumWbemClassObject::Next() if the object is empty.
Dmitry Timoshkov
dmitry at baikal.ru
Mon Jul 8 05:02:19 CDT 2019
Hans Leidekker <hans at codeweavers.com> wrote:
> On Mon, 2019-07-08 at 17:37 +0800, Dmitry Timoshkov wrote:
> > Looks like this is a result of executing from an MSI custom action.
> > > > Is there a way to detect such a case and return an appropriate error
> > > > value?
> > >
> > > The error code suggests that the custom action is run with insufficient
> > > permissions. If that's the case we'd need to do the same and add a permission
> > > check somewhere.
> >
> > Under Windows MSI custom action is executed in the context of an MSI server,
> > which probably runs as a restricted process, and which doesn't exist in Wine.
>
> Custom actions are executed in a seperate process in Wine.
Yes, but that's obviously not an MSI server which probably executes under
a resticted user account in Windows.
> > Could you suggest a place in Wine where a permission check could be added?
>
> It's not clear to me if this is a general WMI thing or if it depends on the
> object being queried.
I'll copy WMI tests from dlls/wbemprox/tests to the MSI custom action tests
to get a picture how it works under Windows.
--
Dmitry.
More information about the wine-devel
mailing list