Re: Restricting access to Assembly.LoadFrom method to access only certain signed assemblies
From: Robert Jarratt [MSFT] (rjarratt_at_online.microsoft.com)
Date: 12/15/03
- Previous message: Munsifali Rashid: "Re: prevent access to web.config"
- In reply to: surya: "Restricting access to Assembly.LoadFrom method to access only certain signed assemblies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Mon, 15 Dec 2003 17:38:56 -0000
Have you considered using Code Access Security to give Execution permission
(and any other relevenat permissions) to assemblies with the relevant strong
name? This way you would not need to do anything inside your program,
instead you would be relying on the administrator to say which assemblies
can be executed. If you want to impose restrictions beyond what can be
expressed with Runtime Security Policy then you might need to check the
Evidence associated with the assembly after executing the LoadFrom.
-- Robert Jarratt Microsoft rjarratt@online.microsoft.com This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at http://www.microsoft.com/info/cpyright.htm "surya" <suryanarayanan.varadarajan@honeywell.com> wrote in message news:%23NyA4NmvDHA.1596@TK2MSFTNGP10.phx.gbl... > Hi, > > I use the Assembly.LoadFrom call in my code to load assemblies > dynamically.This call currently loads both signed and unsigned assemblies. > > It now needs to be changed to load only certain signed assemblies. The > administrator should be able to configure the public keys that are trusted > and my code should only load those strongly signed assemblies with the > public keys specified by the administrator. > > Is there an easy way to implement this? > > > Thanks in advance > > Regards > Surya > > > > >
- Previous message: Munsifali Rashid: "Re: prevent access to web.config"
- In reply to: surya: "Restricting access to Assembly.LoadFrom method to access only certain signed assemblies"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|