EldoS | Feel safer!

Software components for data protection, secure storage and transfer

preventing folder/s deletion question

Also by EldoS: CallbackProcess
A component to control process creation and termination in Windows and .NET applications.
#18178
Posted: 11/14/2011 11:18:08
by Volodymyr Zinin (EldoS Corp.)

Are you checking security rights in the OnCreate and OnOpen callbacks?
#18182
Posted: 11/15/2011 01:53:11
by ohad (Standard support level)
Joined: 02/02/2011
Posts: 24

No,I have a check for the delete permissions in OnCanFileBeDeleted.

What would you suggest?
#18183
Posted: 11/15/2011 02:32:37
by Volodymyr Zinin (EldoS Corp.)

Check the security in your OnCreate and OnOpen callbacks (perhaps by the use of system API AccessCheck) and return ERROR_ACCESS_DENIED if the access isn't granted. In order to get the credentials for the calling thread use the GetOriginatorToken method.
#18191
Posted: 11/15/2011 09:19:53
by ohad (Standard support level)
Joined: 02/02/2011
Posts: 24

Thanks,your suggestion seems to work.

I was able to achieve the result by checking the specific access_mask in the OnOpen and checking for permissions,then returning the ECBFSError.

Reply

Statistics

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