[Mono-bugs] [Bug 66035][Nor] Changed - monodis doesn't disassemble security attributes
bugzilla-daemon@bugzilla.ximian.com
bugzilla-daemon@bugzilla.ximian.com
Wed, 15 Sep 2004 16:38:57 -0400 (EDT)
Please do not reply to this email- if you want to comment on the bug, go to the
URL shown below and enter your comments there.
Changed by sebastien@ximian.com.
http://bugzilla.ximian.com/show_bug.cgi?id=66035
--- shadow/66035 2004-09-15 14:44:10.000000000 -0400
+++ shadow/66035.tmp.22643 2004-09-15 16:38:57.000000000 -0400
@@ -1,14 +1,14 @@
Bug#: 66035
Product: Mono: Compilers
Version: unspecified
-OS:
+OS: unknown
OS Details:
Status: NEW
Resolution:
-Severity:
+Severity: Unknown
Priority: Normal
Component: Other.
AssignedTo: mono-bugs@ximian.com
ReportedBy: sebastien@ximian.com
QAContact: mono-bugs@ximian.com
TargetMilestone: ---
@@ -73,6 +73,67 @@
* Current MCS patch won't show all permission sets.
* Mono's ilasm doesn't support .permissionset - see #66033
* Fx 2.0 has a friendler syntax for permission sets
http://blogs.msdn.com/shawnfa/archive/2004/08/31/223630.aspx
+
+------- Additional Comments From sebastien@ximian.com 2004-09-15 16:38 -------
+If the sample is compiled with CSC we get the following output using
+--decl option.
+
+So monodis can decode the information. There are just not part of the
+generated IL.
+
+
+
+# monodis --declsec bug62358.exe DeclSecurity Table (1..5)
+1: Demand on MethodDef 1:
+ <PermissionSet class="System.Security.PermissionSet"
+ version="1">
+ <IPermission class="System.Security.Permissions.SecurityPermission,
+mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089"
+ version="1"
+ Flags="ControlPrincipal"/>
+</PermissionSet>
+
+2: RequestMinimum on Assembly 1:
+ <PermissionSet class="System.Security.PermissionSet"
+ version="1">
+ <IPermission class="System.Security.Permissions.SecurityPermission,
+mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089"
+ version="1"
+ Flags="Execution"/>
+</PermissionSet>
+
+3: RequestOptional on Assembly 1:
+ <PermissionSet class="System.Security.PermissionSet"
+ version="1">
+ <IPermission class="System.Security.Permissions.SecurityPermission,
+mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089"
+ version="1"
+ Unrestricted="true"/>
+</PermissionSet>
+
+4: RequestRefuse on Assembly 1:
+ <PermissionSet class="System.Security.PermissionSet"
+ version="1">
+ <IPermission class="System.Security.Permissions.SecurityPermission,
+mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089"
+ version="1"
+ Flags="SkipVerification"/>
+</PermissionSet>
+
+5: Demand on TypeDef 2:
+ <PermissionSet class="System.Security.PermissionSet"
+ version="1">
+ <IPermission class="System.Security.Permissions.SecurityPermission,
+mscorlib, Version=1.0.5000.0, Culture=neutral,
+PublicKeyToken=b77a5c561934e089"
+ version="1"
+ Flags="ControlAppDomain"/>
+</PermissionSet>
+