EldoS | Feel safer!

Software components for data protection, secure storage and transfer

IO hangs when accessing app's own filtered directory

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
Posted: 06/11/2015 09:25:09
by tbx (Basic support level)
Joined: 05/05/2015
Posts: 2

I am trying to prevent any file in the app's main directory from being written to by anything but my own process, which is the same process which receives callbacks.

My understanding is that setting this while the filter is active:

_callbackFilter.OwnProcessFiltered = false;

should prevent my code from ever seeing callbacks for its own accesses. However, when I add a callback filter to the directory:

                CbFltCallbackFlags.WriteCallback |
                CbFltCallbackFlags.PostWriteCallback |
                CbFltCallbackFlags.RenameCallback |
                CbFltCallbackFlags.DeleteCallback |
                CbFltCallbackFlags.OpenCallback |

My code receives callbacks for its own accesses inside this directory. I have tried doing a process mask to exclude my app's executable name on this rule, but this seems to have no effect. Furthermore, while the filter is attached, any IO such as opening a log with Notepad inside this directory causes the requesting application to hang until the filter timeout passes.

I then tried configuring a filter access rule:


This keeps me from receiving the callbacks but does not prevent the hanging/deadlock condition when reading a file in that directory. Removing the above rules removes the hangs, but doesn't provide the write protection I'm looking for.

Am I doing something wrong or is this a bug?
Posted: 06/11/2015 09:37:59
by Eugene Mayevski (EldoS Corp.)

Let's continue in HelpDesk ( https://www.eldos.com/helpdesk/ ) please. I have created a new support ticket based on your above message. You will see your (and only your) support tickets by following this URL. You will also get e-mail notifications about updates related to your support ticket.

Sincerely yours
Eugene Mayevski



Topic viewed 2277 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!