Re: enumerate runtime permissions

From: Nicole Calinoiu (calinoiu)
Date: 09/26/05


Date: Mon, 26 Sep 2005 08:21:14 -0400

Yes and no. There are ways to read the permission grant, but they all
require at least one "dangerous" permission, so they tend to be somewhat
useless for reading the permission grant of a limited-permission assembly
from within the target assembly itself. However, if you can somehow involve
a highly privileged assembly in the process, one of these may work for you.

There are also some other options for detecting whether a specific
permission (or set of permissions) has been granted to a given assembly
which, depending on what you're trying to do, may be a better approach.
So... In what scenario do you need this information, and what would you do
with it once you've got it?

"Jas" <Jas@discussions.microsoft.com> wrote in message
news:EBFBFC19-E96C-439B-BCB9-59E41FD21514@microsoft.com...
> Is there a way for an assembly to enumerate all the permissions granted to
> it
> by the runtime? For some reason I remember reading somewhere in the past
> that you can't do this, but I wasn't sure.



Relevant Pages

  • Re: A Technical Question
    ... But you reading by spilled light does not make that light dimmer for the ... giving permission to use. ... person would believe that an open wifi connection was open for a reason. ...
    (uk.legal)
  • User IIS W2000 server
    ... How can I protect a web area, after creating a group of users which only the ... administrator and them have access to the web, but at the same time these ... users donīt have permission for nothing else but reading? ...
    (microsoft.public.inetserver.iis.security)
  • Re: User IIS W2000 server
    ... > How can I protect a web area, after creating a group of users which only ... > users donīt have permission for nothing else but reading? ... > access with the basic authenticity on, ...
    (microsoft.public.inetserver.iis.security)
  • Re: [OT] Silly (copyright?) claim by "Galen".
    ... > least ignore the signature at that point.) ... > not owned by Microsoft then this work is being used without MY permission. ... "Please note that if you're reading this with a web-browser and the ...
    (comp.security.misc)
  • Re: same copy of xp on 2 computers?
    ... Do you bother reading the posts you reply to? ... "UNLESS you have the permission of the copyright owner to do so" are you ... In the case of Windows XP, the EULA gives you the copyright owner's ... permission to make one copy of the software for backup purposes. ...
    (microsoft.public.windowsxp.general)