EldoS | Feel safer!

Software components for data protection, secure storage and transfer

CbFsGetFileSecurity in callback seem to differ from actual parameters

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#18076
Posted: 11/03/2011 21:39:18
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

I am using 3.2.100 version of CBFS under win7
I found two problems in Mapper sample.
The first problem:

Receive the quantity of the CbFsGetFileSecurity callback more than process monitor log.

Attached is an image showing the process monitor log the first picture, and the second picture is a corresponding snippet from the log of the callbacks that Mapper sample received. In this example we received 36 CbFsGetFileSecurity callbacks. while only received 6 GetFileSecurity in process monitor(V2.96) log.

first picture:


#18077
Posted: 11/03/2011 21:50:35
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

second picture:


#18078
Posted: 11/03/2011 21:52:31
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

the second problem:

CbFsGetFileSecurity in callback seem to differ from actual parameters.

I copy mapper.exe in debugging by VC2008 to vDisk(M:), In other words, the mapper.exe is occupied by VC2008 IDE at the moment.

In the process monitor log, SecurityInformation are all DACL(DACL_SECURITY_INFORMATION == 4).
But the last three line SecurityInformation is 31 in the Mapper.exe received.

Besides, I found the quantity of SecurityInformation=4(DACL) in the Mapper.exe received equal to In the process monitor log. are all 6.

My computer doesn't install third-party file system filter driver.

Thanks a lot for your help.


#18079
Posted: 11/03/2011 21:54:18
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

2nd picture:


#18080
Posted: 11/03/2011 22:28:34
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

I add follow code to CbFsGetFileSecurity of mapper sample to save log.

Code
   WCHAR m_ChProcessName[256] = {0x0};
   DWORD m_DwLength = 256;
   g_CbFs.GetOriginatorProcessName(m_ChProcessName, &m_DwLength);

   char m_ChInfo[256] = {0x0};
   sprintf(m_ChInfo, "CbFsGetFileSecurity: FileName=%ws; ProcessName=%ws; SecurityInformation=%d; Length=%d; LengthNeeded=%d",  FileInfo->get_FileNameBuffer(), m_ChProcessName + 32, SecurityInformation, Length, *LengthNeeded);
   WriteLogFile(m_ChInfo);

/////////////////////////////////////////////////////////////////////////////
   LPTSTR FileName = (LPTSTR)malloc((FileInfo->get_FileName(NULL) + _tcslen(g_RootPath) + 1 ) * sizeof(TCHAR));


Code
void WriteLogFile(CHAR *mChLogContent)
{
   FILE *fp;
   WCHAR m_ChLogFileName[MAX_PATH] = {0x0};
   WCHAR m_WChFilePathName[MAX_PATH] = {0x0};

   SYSTEMTIME m_SystemTime;
   GetLocalTime(&m_SystemTime);
   
   char curtimebuf[10] = {0x0};
   _strtime_s(curtimebuf, 9);
   
   if(fopen_s(&fp, "c:\\log.txt", "at+"))
   {
      MessageBox(NULL, L"open file fail!", L"error", MB_OK + MB_ICONEXCLAMATION);
      
      return;
   }

   fputs(curtimebuf, fp);
   fputs(": ", fp);
   fputs(mChLogContent, fp);
   fputc('\n', fp);
   fclose(fp);
   fp = NULL;
}
#18082
Posted: 11/04/2011 00:54:55
by Eugene Mayevski (EldoS Corp.)

It doesn't look like you have a valid key for CBFS. Cheating is not welcome, so, sorry, we won't help you.


Sincerely yours
Eugene Mayevski
#18086
Posted: 11/04/2011 02:52:10
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

I used the trial key.

Quote

Thank you for your interest in our products and for detailed description of
the task. I am providing the key below, however, CBFS is probably not the
best option. Filesystem filter driver such as our CallbackFilter
(http://www.eldos.com/cbflt/) would fit better. So I am including keys for
both CBFS and CallbackFilter for you to test.

Please use keys below, valid until 27th of November. The evaluation period
can be extended later on request. License keys are to be passed to
SetRegistrationKey method of CallbackFileSystem and CallbackFilter classes
accordingly.

Callback File System:

3DFE01****************************************************************************************************************************************************************************************************************8B08E681


CallbackFilter:

20D007****************************************************************************************************************************************************************************************************************C525951BE


This trial key seems has expired, but no any prompt, so I'm still testing Mapper examples.
#18088
Posted: 11/04/2011 03:15:51
by Eugene Mayevski (EldoS Corp.)

Exactly, the trial period is over.


Sincerely yours
Eugene Mayevski
#18090
Posted: 11/04/2011 03:34:37
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

can I continue to test it?
I used to use dokan,but there are some bugs in dokan,so I want to use calbback file system. I applied a key to test the function and stability.
Are the function all the same of different type license? If CBFS is stable, I want to buy a license.
#18093
Posted: 11/04/2011 06:47:39
by tom slient (Basic support level)
Joined: 10/25/2011
Posts: 11

Quote

valid until 27th of November

the trial key hasn't expired.
I made a mistake,I thought it was 27th of October.
Also by EldoS: MsgConnect
Cross-platform protocol-independent communication framework for building peer-to-peer and client-server applications and middleware components.

Reply

Statistics

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