EldoS | Feel safer!

Software components for data protection, secure storage and transfer

How to use AddDeniedProcess?

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
#17989
Posted: 10/26/2011 03:27:27
by xu zhi lian (Basic support level)
Joined: 09/27/2011
Posts: 17

I am using 3.2.100 version of CBFS under win7.
I want to forbid a program(e.g. C:\Windows\explorer.exe) accessing the storage.
but throws an error.

Here is the order of my calls are:
Code
CallbackFileSystem g_CbFs
...

OnCallbackFsCreateStorage();
OnCallbackFsMount();
g_CbFs.SetFileSystemName(L"NTFS");

try
{
// Enable the feature (all the process are denied to access the drive after this).
g_CbFs.SetProcessRestrictionsEnabled(TRUE);
// Allow every process to access.
g_CbFs.AddGrantedProcess(NULL, -1, TRUE, g_CbFs.paReadWrite);
// Deny access for the process "explorer.exe".
g_CbFs.AddDeniedProcess(L"C:\\Windows\\explorer.exe", 0, FALSE, g_CbFs.paReadWrite);
}
catch(ECBFSError err)
{
MessageBox(err.Message(), _T("Error"), MB_OK|MB_ICONERROR);
return;
}

OnCallbackAddPoint(L"X:");


Anyone who knows how to use AddDeniedProcess function?

Thanks a lot for your help.

I have attached the picture.


#17990
Posted: 10/26/2011 04:55:28
by Volodymyr Zinin (EldoS Corp.)

There is a bug inside the call
g_CbFs.AddGrantedProcess(NULL, -1, TRUE, g_CbFs.paReadWrite);

And it will be fixed in the next build.
#17992
Posted: 10/26/2011 06:43:57
by xu zhi lian (Basic support level)
Joined: 09/27/2011
Posts: 17

thanks Zinin.
About InstallIcon.
I think that can't save the icon to the temporary directory(e.g. C:\Users\ADMINI~1\AppData\Local\Temp\ico893D.tmp), because some users like clear the temporary directory periodically. suggest save the icon to system directory.
#17993
Posted: 10/26/2011 06:52:05
by Vladimir Cherniga (EldoS Corp.)

Quote
I think that the icon can't save to the temporary directory(e.g. C:\Users\ADMINI~1\AppData\Local\Temp\ico893D.tmp), because some users like clear the temporary directory periodically. suggest save to system directory.

This path is used only during icon installation.

Reply

Statistics

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