How can I tell waht permissions an assembly requires?

Ask a Question related to ASP.NET Security, Design and Development.

  1. #1

    Default How can I tell waht permissions an assembly requires?

    Is there a tool that tells me what permissions my assembly requires?

    I have add [assembly: PermissionSet(SecurityAction.RequestOptional,
    Unrestricted=false)] to deny all permissions I just want to now grant one I
    require?


    Cheers

    Earth Worm Jim


    Earth Worm Jim Guest

  2. Similar Questions and Discussions

    1. Contribute permissions vs. network permissions
      We are currently implementing Contribute in a website that is highly centralized, with approximately 50 department-level CT writers and 4 CT...
    2. Assembly acessing StrongNamed assembly getting "Access Denied" intermitently
      I have an ASP.NET application that is using a code library our development team uses. The code library is a few web controls in a Strong Named...
    3. .NET Assembly permissions
      Hi, I am in the process of working on ASP.NET web control. Basically the control is just a timer which after a certain timespan posts the page...
    4. Reading the public key inside a strongly signed assembly from the assembly itself???
      Hello, is it possible to programmatically read (and how) the public key that is embedded into an assembly that has been strongly signed??? What...
    5. Look at waht i have for sale
      -- Have a look at what I am selling on ebay http://cgi6.ebay.com/ws/eBayISAPI.dll?ViewSellersOtherItems&include=0&userid...
  3. #2

    Default Re: How can I tell waht permissions an assembly requires?

    In article <OlizpYh#DHA.1452@TK2MSFTNGP09.phx.gbl>, "Earth Worm Jim"
    <sdd> says...
    > Is there a tool that tells me what permissions my assembly requires?
    >
    > I have add [assembly: PermissionSet(SecurityAction.RequestOptional,
    > Unrestricted=false)] to deny all permissions I just want to now grant one I
    > require?
    PermView.exe

    --
    Patrick Steele
    Microsoft .NET MVP
    [url]http://weblogs.asp.net/psteele[/url]
    Patrick Steele [MVP] Guest

  4. #3

    Default Re: How can I tell waht permissions an assembly requires?

    nope, as far as I can see that tells you what permissions your assembly has
    applied, not the permissions that it requires...

    Am I wrong?


    "Patrick Steele [MVP]" <patrick@mvps.org> wrote in message
    news:MPG.1aa40cab8d698db89898c6@msnews.microsoft.c om...
    > In article <OlizpYh#DHA.1452@TK2MSFTNGP09.phx.gbl>, "Earth Worm Jim"
    > <sdd> says...
    > > Is there a tool that tells me what permissions my assembly requires?
    > >
    > > I have add [assembly: PermissionSet(SecurityAction.RequestOptional,
    > > Unrestricted=false)] to deny all permissions I just want to now grant
    one I
    > > require?
    >
    > PermView.exe
    >
    > --
    > Patrick Steele
    > Microsoft .NET MVP
    > [url]http://weblogs.asp.net/psteele[/url]

    Ollie Guest

  5. #4

    Default Re: How can I tell waht permissions an assembly requires?

    In article <#EzMevj#DHA.548@TK2MSFTNGP11.phx.gbl>, "Ollie" <why do they
    need this!!!!> says...
    > nope, as far as I can see that tells you what permissions your assembly has
    > applied, not the permissions that it requires...
    Hmmmm... Perhaps this is just semantics, but if you "apply" an
    attribute requesting a certain permission (because you "require" that
    permission for your application), won't PermView do what the OP is
    looking for?

    --
    Patrick Steele
    Microsoft .NET MVP
    [url]http://weblogs.asp.net/psteele[/url]
    Patrick Steele [MVP] Guest

  6. #5

    Default Re: How can I tell waht permissions an assembly requires?

    The problem is I want to deny all permissions and then be able to evaluate
    an assembly and generate a list of permissions it requires and then apply
    those permissions explicitly.

    Ollie

    "Patrick Steele [MVP]" <patrick@mvps.org> wrote in message
    news:MPG.1aa55cd2782adb1c9898cb@msnews.microsoft.c om...
    > In article <#EzMevj#DHA.548@TK2MSFTNGP11.phx.gbl>, "Ollie" <why do they
    > need this!!!!> says...
    > > nope, as far as I can see that tells you what permissions your assembly
    has
    > > applied, not the permissions that it requires...
    >
    > Hmmmm... Perhaps this is just semantics, but if you "apply" an
    > attribute requesting a certain permission (because you "require" that
    > permission for your application), won't PermView do what the OP is
    > looking for?
    >
    > --
    > Patrick Steele
    > Microsoft .NET MVP
    > [url]http://weblogs.asp.net/psteele[/url]

    Ollie Guest

  7. #6

    Default Re: How can I tell waht permissions an assembly requires?

    In article <OmRvd33#DHA.620@TK2MSFTNGP11.phx.gbl>, "Ollie" <why do they
    need this!!!!> says...
    > The problem is I want to deny all permissions and then be able to evaluate
    > an assembly and generate a list of permissions it requires and then apply
    > those permissions explicitly.
    I don't of any automatic way of doing that. Would be pretty cool
    though! :)

    --
    Patrick Steele
    Microsoft .NET MVP
    [url]http://weblogs.asp.net/psteele[/url]
    Patrick Steele [MVP] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139