[Mono-bugs] [Bug 66117][Nor] New - Runtime doesn't encode assembly-level security attributes in the metadata

bugzilla-daemon@bugzilla.ximian.com bugzilla-daemon@bugzilla.ximian.com
Thu, 16 Sep 2004 14:51:33 -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=66117

--- shadow/66117	2004-09-16 14:51:33.000000000 -0400
+++ shadow/66117.tmp.9966	2004-09-16 14:51:33.000000000 -0400
@@ -0,0 +1,56 @@
+Bug#: 66117
+Product: Mono: Runtime
+Version: unspecified
+OS: All
+OS Details: 
+Status: NEW   
+Resolution: 
+Severity: 
+Priority: Normal
+Component: misc
+AssignedTo: mono-bugs@ximian.com                            
+ReportedBy: sebastien@ximian.com               
+QAContact: mono-bugs@ximian.com
+TargetMilestone: ---
+URL: 
+Cc: 
+Summary: Runtime doesn't encode assembly-level security attributes in the metadata
+
+Description of Problem:
+Runtime doesn't encode assembly-level security attributes in the metadata.
+
+
+Steps to reproduce the problem:
+1. Compile sample code decl_all.cs from bug #66035
+http://bugzilla.ximian.com/showattachment.cgi?attach_id=10765
+
+2. Disassemble using MS ildasm (or monodis with patches from #66035)
+
+
+Actual Results:
+No .permissionset reqmin|reqopt|reqrefuse are present in the IL.
+
+
+Expected Results:
+.assembly 'decl_all'
+{
+  .permissionset reqmin =  (
+  3C 00 49 00 50 00 65 00 72 00 6D 00 69 00 73 00   // <.I.P.e.r.m.i.s.
+  73 00 69 00 6F 00 6E 00 20 00 63 00 6C 00 61 00   // s.i.o.n. .c.l.a.
+...
+  .permissionset reqopt =  (
+...
+  .permissionset reqrefuse =  (
+...
+}
+...
+
+
+How often does this happen? 
+Always
+
+
+Additional Information:
+(a) AssemblyBuilder doesn't provide the permissions in a "easily usable"
+state (they are available in Assembly as PermissionSet).
+(b) the runtime doesn't encode them.