[Mono-bugs] [Bug 375368] New: On GetObjectData accept [SecurityPermission(Flags= SerializationFormatter)]

bugzilla_noreply at novell.com bugzilla_noreply at novell.com
Mon Mar 31 06:05:48 EDT 2008


https://bugzilla.novell.com/show_bug.cgi?id=375368


           Summary: On GetObjectData accept
                    [SecurityPermission(Flags=SerializationFormatter)]
           Product: Mono: Tools
           Version: SVN
          Platform: Other
        OS/Version: Other
            Status: NEW
          Severity: Normal
          Priority: P5 - None
         Component: Gendarme
        AssignedTo: mono-bugs at lists.ximian.com
        ReportedBy: andyhume32 at yahoo.co.uk
         QAContact: mono-bugs at lists.ximian.com
          Found By: ---


Created an attachment (id=204935)
 --> (https://bugzilla.novell.com/attachment.cgi?id=204935)
Repro code

Gendarme reports "SerializationFormatter is not a subset of LinkDemand
permission set" for e.g.
[[
[Serializable]
public MyException : Exception
{
  [SecurityPermission(SecurityAction.LinkDemand, 
     Flags = SecurityPermissionFlag.SerializationFormatter)]
  public void override GetObjectData (...)
  {...}

  ...
]]

However, it accepts
  [SecurityPermission(SecurityAction.LinkDemand, SerializationFormatter=true)]

The two are equivalent AIUI.  In fact, the target assembly must have been
compiled with MSFT's csc for this fault to appear; gmcs apparently writes both
forms as the second form (actually in the ToXML form).


-- 
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the mono-bugs mailing list