EldoS | Feel safer!

Software components for data protection, secure storage and transfer

When creating a new file at other location

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#24935
Posted: 05/15/2013 03:07:17
by gwihwan Ji (Standard support level)
Joined: 08/24/2008
Posts: 36

Program A tries to write a new file at c:\supposed\
But, the filter is filtering the newfile, then moves to c:\done\
For this, I used two filters OnopenfileC and OnwritefileC.
In OnOpenfileC, I add ProcessRequest = false;
In OnWritefileC, I write the context on c:\done\

But, In OnOpenfileC, ProcessRequest = false makes windows error - newfile is denied.
In OnOpenfileC, ProcessRequest = ture created 0 byte newfile on c:\supposed\.

How do I do?

Best regards,
Joohyun
#24936
Posted: 05/15/2013 03:16:49
by Eugene Mayevski (EldoS Corp.)

If you set ProcessRequest = false, the file is not opened (the request does not reach the filesystem) and the OS is told, that access is denied.

You need to add a reparse rule (AddReparseFileNameRule method). I will ask the developer to tell you how exactly the rules need to be set up.


Sincerely yours
Eugene Mayevski
#24937
Posted: 05/15/2013 03:30:36
by gwihwan Ji (Standard support level)
Joined: 08/24/2008
Posts: 36

I cannot use the reparse rule because I cannot redirect all files.
I try to redirect new creating files only and few exceptional condition.
How can I do?

Best regards,
Joohyun
#24938
Posted: 05/15/2013 03:44:56
by Eugene Mayevski (EldoS Corp.)

Quote
Joohyun Kim wrote:
But, the filter is filtering the newfile, then moves to c:\done


We are confused regarding what you want to accomplish at this point, cause different approaches exist.

Do you want to write data to c:\done\somefile.ext INSTEAD of c:\supposed\somefile.ext?

OR do you want to write something to c:\supposed\somefile.ext and then move file to c:\done?


Sincerely yours
Eugene Mayevski
#24944
Posted: 05/15/2013 20:50:56
by gwihwan Ji (Standard support level)
Joined: 08/24/2008
Posts: 36

Quote
Do you want to write data to c:\done\somefile.ext INSTEAD of c:\supposed\somefile.ext?


I want to write data to c:\done\somefile.ext INSTEAD of c:\supposed\somefile.ext

It's my wrong English expression.

Best regards,
Joohyun
#24947
Posted: 05/16/2013 01:42:52
by Vladimir Cherniga (EldoS Corp.)

Quote
I want to write data to c:\done\somefile.ext INSTEAD of c:\supposed\somefile.ext

You can use virtual files instead of reparse rule. In a Create/Open file callback return VirtualFile = true, when you detect c:\done\somefile.ext file creation.
then in PostOpen/PostCreate file create an associated context and use a c:\supposed\somefile.ext as a source for subsequent callbacks associated with somefile.txt.
In the nearest update of CallbackFilter 3 we will add a sample code to demonstrate the technique of virtual files handling.
#24949
Posted: 05/16/2013 01:58:35
by gwihwan Ji (Standard support level)
Joined: 08/24/2008
Posts: 36

Thannk you for your suggestion.
Pls, add the sample code covering my need ASAP.

Best regards,
Joohyun
Also by EldoS: Callback File System
Create virtual file systems and disks, expose and manage remote data as if they were files on the local disk.

Reply

Statistics

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