T
Tony Johansson
Hi!
I have the following three declarative permissions.
[assembly:RegistryPermission(SecurityAction.RequestMinimum,
Read=@"HKEY_LOCAL_MACHINE\Software")]
[assembly: UIPermission(SecurityAction.RequestMinimum, Unrestricted=true)]
[assembly:RegistryPermission(SecurityAction.RequestOptional,
Read=@"HKEY_LOCAL_MACHINE\Software")]
Now to my question the assembly only have the following permission
1. RegistryPermission
2. UIPermission
The other has been given away so to speak because of how the
RequestedOptional work.
So according to me this assembly doesn't even have the SequrityPermission
that give it permission to execute ?
I'm I right in my conclusion ?
The strange thing is that I can execute the assembly.
If I do this
[assembly:SecurityPermission(SecurityAction.RequestRefuse)]
I can still execute the assembly. This SequrityPermission has no effect at
all on the assembly
//Tony
I have the following three declarative permissions.
[assembly:RegistryPermission(SecurityAction.RequestMinimum,
Read=@"HKEY_LOCAL_MACHINE\Software")]
[assembly: UIPermission(SecurityAction.RequestMinimum, Unrestricted=true)]
[assembly:RegistryPermission(SecurityAction.RequestOptional,
Read=@"HKEY_LOCAL_MACHINE\Software")]
Now to my question the assembly only have the following permission
1. RegistryPermission
2. UIPermission
The other has been given away so to speak because of how the
RequestedOptional work.
So according to me this assembly doesn't even have the SequrityPermission
that give it permission to execute ?
I'm I right in my conclusion ?
The strange thing is that I can execute the assembly.
If I do this
[assembly:SecurityPermission(SecurityAction.RequestRefuse)]
I can still execute the assembly. This SequrityPermission has no effect at
all on the assembly
//Tony