EldoS | Feel safer!

Software components for data protection, secure storage and transfer

GEtOriginatorProcessName fails

Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.
#32272
Posted: 02/19/2015 05:19:35
by Barak S (Standard support level)
Joined: 11/28/2013
Posts: 23

I call GetOriginatorProcessName only from the OpenFile callback
Many times the call would fail, why is that?
Knowing the originator process is very important for a correct behavior of our file system
#32274
Posted: 02/19/2015 05:50:59
by Volodymyr Zinin (EldoS Corp.)

What type of CBFS API (C++, .NET, Delphi, or Java) are you using? Is the problem reproducible with any of the CBFS samples?

Thanks.
#32275
Posted: 02/19/2015 05:56:16
by Volodymyr Zinin (EldoS Corp.)

In the case of C++ check first whether the ProcessNameLength parameter is initialized before the call. In the case the buffer size isn't enough to fill with the returned process name the function fails and the "last error" value (GetLastError()) will contain the "buffer too small" error.
#32276
Posted: 02/19/2015 07:00:06
by Barak S (Standard support level)
Joined: 11/28/2013
Posts: 23

I'm using C#
#32277
Posted: 02/19/2015 07:11:53
by Volodymyr Zinin (EldoS Corp.)

Is the problem reproducible with any of the CBFS samples? It would be nice if I could reproduce it.
Thanks.
#32319
Posted: 02/23/2015 12:34:07
by Barak S (Standard support level)
Joined: 11/28/2013
Posts: 23

We won't ask our customers to try the samples. We see those errors in our logs
Please investigate this issue
#32320
Posted: 02/23/2015 12:43:26
by Eugene Mayevski (EldoS Corp.)

The bug can be specific to your code (either to your particular usage scenario or to the code itself). There's no way to investigate the issue without having a way to reproduce it. Please provide some test case which illustrates the issue.


Sincerely yours
Eugene Mayevski
#32357
Posted: 02/26/2015 14:05:15
by Barak S (Standard support level)
Joined: 11/28/2013
Posts: 23

We call it at the beginning of the OpenFile callback
What could be buggy with that?
#32358
Posted: 02/26/2015 14:08:21
by Barak S (Standard support level)
Joined: 11/28/2013
Posts: 23

Could this method return an empty string, or would it return false?
#32362
Posted: 02/26/2015 23:35:18
by Volodymyr Zinin (EldoS Corp.)

The method fails in the case it returns false. In Windows there is a process without name. It's the "SYSTEM" process with PID 4. This process only executes on the kernel level (ring 0) and is used by the Windows kernel code as well as kernel drivers.
Also by EldoS: SecureBlackbox
200+ components and classes for digital security, signing, encryption and secure networking.

Reply

Statistics

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