[Mono-bugs] [Bug 66033][Nor] New - ilasm ignore .permissionset

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Wed, 15 Sep 2004 14:41:25 -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=66033

--- shadow/66033	2004-09-15 14:41:25.000000000 -0400
+++ shadow/66033.tmp.20561	2004-09-15 14:41:25.000000000 -0400
@@ -0,0 +1,91 @@
+Bug#: 66033
+Product: Mono: Compilers
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: IL assembler
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: ilasm ignore .permissionset
+
+Description of Problem:
+ilasm doesn't support declarative security using .permissionset. It doesn't
+seems to be a grammar problem (as an "usable" assembly is generated). 
+
+
+Steps to reproduce the problem:
+1. iladm the attached source with Mono
+2. Diassemble generated EXE using ildasm (windows) *
+
+
+Actual Results (portions ommited for clarity):
+
+.assembly extern mscorlib
+{
+  .publickeytoken = (B7 7A 5C 56 19 34 E0 89 )
+  .ver 1:0:5000:0
+}
+.assembly bug62358
+{
+  .hash algorithm 0x00008004
+  .ver 0:0:0:0
+}
+.module bug62358.exe
+// MVID: {D03FBE2C-C7FD-45D8-BB4E-240CE2B00184}
+.imagebase 0x00400000
+.subsystem 0x00000003
+.file alignment 512
+.corflags 0x00000001
+
+.class public auto ansi beforefieldinit Program
+       extends [mscorlib]System.Object
+{
+}
+
+.class public auto ansi beforefieldinit Program
+       extends [mscorlib]System.Object
+{
+  .method public hidebysig static void  Main(string[] args) cil managed
+  {
+    .entrypoint
+    // Code size       11 (0xb)
+    .maxstack  8
+    IL_0000:  ldstr      "Hello Mono!"
+    IL_0005:  call       void [mscorlib]System.Console::WriteLine(string)
+    IL_000a:  ret
+  } // end of method Program::Main
+ 
+  .method public hidebysig specialname rtspecialname
+          instance void  .ctor() cil managed
+  {
+    // Code size       7 (0x7)
+    .maxstack  8
+    IL_0000:  ldarg.0
+    IL_0001:  call       instance void [mscorlib]System.Object::.ctor()
+    IL_0006:  ret
+  }
+}
+
+
+Expected Results:
+Disassembling using ildasm (windows) should show the .permissionset's in IL.
+
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+
+* Right now monodis doesn't support .permissionset either.
+
+* A quick grep in the source code shows that no calls to
+AddDeclarativeSecurity seems to be done in ilasm.