EldoS | Feel safer!

Software components for data protection, secure storage and transfer

preventing folder/s deletion question

Posted: 11/14/2011 11:18:08
by Volodymyr Zinin (Team)

Are you checking security rights in the OnCreate and OnOpen callbacks?
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?
Posted: 11/15/2011 02:32:37
by Volodymyr Zinin (Team)

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.
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.



Topic viewed 5877 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!