Results 1 to 3 of 3

Thread: Reflection and Secuirty

  1. #1

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913

    Reflection and Secuirty

    For those that remember our discussions and my code for loading plugins, I am now working on trying to add some safety to these plugins. Basically I am looknig for some information/code to specify what the dll can do and make sure the dll cannot override that. In other words, I want to keep plugins from running executables and keep it from doing other dangerous actions.

    Any thoughts, theories, or code ais welcome..
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    That one is a bit difficult since you aren't the one writing the code for the plugins. I think you can run different threads in different User Permissions, maybe you could run the plugins in an alternate thread with lesser permissions.

  3. #3

    Thread Starter
    Banished Cander's Avatar
    Join Date
    Dec 2000
    Location
    Why do you care?
    Posts
    6,913
    Well, what I am hoping is that with the power that was given with Reflection for using dll's very dynamically, that MS might have actually considered stuff like this.

    I mean I could impersonate a low permission user, but I wonder if the dll would be able to override that. I would assume no since it should be running under a persmission that wouldnt allow that. I will just have to do some experimenting with this.
    Stack Overflow
    See the features of Visual Studio 2010 and C# 4.0: The 10-4 show on Channel9

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width