EldoS | Feel safer!

Software components for data protection, secure storage and transfer

OnPostOpenKey handling causes failure to launch process

Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.
#30711
Posted: 09/12/2014 15:49:24
by not sure (Standard support level)
Joined: 05/27/2014
Posts: 24

Hi,

I'm using the 0.9.0 pre-release of CallbackRegistry and am having an issue where if I have a filtered process (regedit.exe in my case) as well as handle OnPostOpenKey Windows reports that the application does not start correctly. This is true even when there is no code in the body of the handler. Leaving all other code the same, but removing the OnPostOpenKey handler and the application is able to run normally.

Thanks!
#30713
Posted: 09/12/2014 16:31:05
by Volodymyr Zinin (EldoS Corp.)

Thank you for interesting of our product. Could you specify how to reproduce it?

Thanks.
#30745
Posted: 09/16/2014 12:48:52
by not sure (Standard support level)
Joined: 05/27/2014
Posts: 24

I'm using the .NET library. It seems as though if I handle both OnPreOpenKey and OnPostOpenKey, even if both handlers do not contain a function body any filtered process fails to launch at that point.
#30756
Posted: 09/17/2014 01:55:44
by Volodymyr Zinin (EldoS Corp.)

Could you specify how to reproduce it? I have tried it with the GenSample sample application (this sample contains both Pre- and PostOpen callbacks in the postoperation section) but it works correctly.

Thanks.
#30769
Posted: 09/18/2014 12:42:53
by not sure (Standard support level)
Joined: 05/27/2014
Posts: 24

I see that it does work fine with the GenSample for PostOp. I am currently looking further into the differences between GenSample and my project.
#30770
Posted: 09/18/2014 13:20:53
by not sure (Standard support level)
Joined: 05/27/2014
Posts: 24

OK so the fundamental difference is that the GenSample sets the stopFiltering callback parameter to true when any key that doesn't match the path HKEY_CURRENT_USER\Software\CbRegGenSample\Postprocess isn't attempted to be created or opened. In my code I am never setting stopfiltering to true and it appears that when certain keys are being accessed (they appear to be sxs related) the filtered process crashes on startup. I modified the GenSample to match this behavior (never set StopFiltering) and get regedit crash on startup in the same way.
#30777
Posted: 09/19/2014 08:17:39
by Volodymyr Zinin (EldoS Corp.)

Thank you for the information. There is a bug in CallbackRegistry. The bugfix will be available in the next build.
Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.

Reply

Statistics

Topic viewed 7883 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!