简体   繁体   中英

Stopping a third party assembly from accessing resources

We have a third party library referenced in our project, but without access to the source I don't really know what it's doing under the hood and there's too much code to check it out with Reflector.

Is there any easy way to completely sandbox it so it can't access the file system, network, registry etc.?

I'm trying to get up to speed with security, but it's a huge topic.

http://www.csharp411.com/executing-code-in-partial-trust-environments/

Look at configuring the assembly for partial trust. The article should give you the basics to help you get started... (or to know where else to look)

Hope this helps!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM