How to determine which permission is being requested?

From: Gleb Holodov (gvh_at_mail.ru)
Date: 05/11/03


Date: Sun, 11 May 2003 19:04:21 +0400


Dear all!

I'm writing a program which is supposed to be ran from a network share, and
thus will have an evidence with a security zone set to "intranet".
Everything works just fine when I set Inranet permissions to "full trust",
but when I reduce a number of permissions to something lower (even
"Everything"), a SecurityException rises at different locations. For
example, these pieces of code fail independently:
...
new TcpChannel( 0 );
...
System.Diagnostics.Process.GetCurrentProcess();
...

SecurityException class being thrown doesn't contain any additional
information. Neither PermView shows no attribute-level security guards on
those methods, nor ILDASM doesn't inidicate any special checks nor naughty
code inside those methods.

Has anybody come accross with such mishaps? If yes, is there a way to
determine which permissions are being required by some piece of code?

I'm running .NET Framework 1.0 SP2.

--
Warmest regards, Gleb Holodov
Software Developer
ThinkWave Inc.
www.thinkwave.com


Relevant Pages

  • Re: Code Access Security, Evidence Based Security, Code Access Permission, Role Based Permission, et
    ... CAS considers the evidence presented by the code at runtime. ... It then compares this evidence to security ... which is associated with a set of permissions. ...
    (microsoft.public.dotnet.security)
  • RE: What server hardening are you doing these days?
    ... permissions on their data, and Microsoft encourages ISVs to minimize ... I've been able to discuss ACLs and other security issues in Windows with ... Control or DAC (which is what you're referring to by the "stupid ...
    (Focus-Microsoft)
  • Re: Windows Firewall Wont Stay On
    ... I have come up with a solution that does not disable Security Center, ... By changing the Permissions of that key, ... settings from being changed again. ... the firewall alert settings in Security Center get ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: get rid of security center?
    ... I have come up with a solution that does not disable Security Center, ... By changing the Permissions of that key, ... settings from being changed again. ... the firewall alert settings in Security Center get ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: Password Protect IExplore
    ... You can protect the files and folders you store on your computer to make ... To set, view, change, or remove special permissions for files and folders ... clear the Inherit from parent the permission entries that apply ... To configure security so that the subfolders and files will not ...
    (microsoft.public.internet.explorer.ieak)