How can I tell waht permissions an assembly requires?

E

Earth Worm Jim

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
 
P

Patrick Steele [MVP]

"Earth Worm Jim" said:
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
 
O

Ollie

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 said:
"Earth Worm Jim" said:
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
 
P

Patrick Steele [MVP]

"Ollie" <why do they said:
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?
 
O

Ollie

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
 
P

Patrick Steele [MVP]

"Ollie" <why do they said:
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! :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top