Re: enumerate runtime permissions
From: Nicole Calinoiu (calinoiu)
Date: 09/26/05
- Next message: synsoft: "Re: windows authentication problem"
- Previous message: Lloyd Dupont: "Re: .NET 2.0: code access security / authentication"
- Next in thread: Nicole Calinoiu: "Re: enumerate runtime permissions"
- Maybe reply: Nicole Calinoiu: "Re: enumerate runtime permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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.
- Next message: synsoft: "Re: windows authentication problem"
- Previous message: Lloyd Dupont: "Re: .NET 2.0: code access security / authentication"
- Next in thread: Nicole Calinoiu: "Re: enumerate runtime permissions"
- Maybe reply: Nicole Calinoiu: "Re: enumerate runtime permissions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|