diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-08-31 17:12:47 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-08-31 17:12:47 +0400 |
commit | a17dea8630c8da3e960facf20c013e3afb1d9bbc (patch) | |
tree | 5b3d267e5dfe3bd018a049a0c0e8bbd54f448f55 /mcs/class/System.XML/System.Xml/XmlDocument.cs | |
parent | 0918aca882b3c2a4064627c2d4ef6066bec619ae (diff) |
2005-08-31 Sebastien Pouliot <sebastien@ximian.com>
* XmlDocument.cs: Added an InheritanceDemand for Unrestricted on
CreateDocumentType and ReadNode methods.
* XmlException.cs: Added a Demand for SerializationFormatter on
GetObjectData method.
* XmlResolver.cs: Added an InheritanceDemand for Unrestricted on
ResolveUri method.
* XmlSecureResolver.cs: Fixed exception when creating evidences with
an empty URL in CreateEvidenceForUrl method. Only call ResolvePolicy
and PermitOnly if the security manager is enabled.
* XmlTextReader.cs: Added an InheritanceDemand for Unrestricted on the
class.
* XmlTextReader2.cs: Added an InheritanceDemand for Unrestricted on
the class.
* XmlValidatingReader.cs: Added an InheritanceDemand for Unrestricted
on the class.
svn path=/trunk/mcs/; revision=49179
Diffstat (limited to 'mcs/class/System.XML/System.Xml/XmlDocument.cs')
-rw-r--r-- | mcs/class/System.XML/System.Xml/XmlDocument.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/mcs/class/System.XML/System.Xml/XmlDocument.cs b/mcs/class/System.XML/System.Xml/XmlDocument.cs index d76a47a7074..0bcf08723bb 100644 --- a/mcs/class/System.XML/System.Xml/XmlDocument.cs +++ b/mcs/class/System.XML/System.Xml/XmlDocument.cs @@ -12,8 +12,7 @@ // (C) 2001 Daniel Weber // (C) 2002 Kral Ferch, Jason Diamond, Miguel de Icaza, Duncan Mak, // Atsushi Enomoto -// - +// Copyright (C) 2005 Novell, Inc (http://www.novell.com) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the @@ -35,9 +34,9 @@ // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. // -using System; using System.Globalization; using System.IO; +using System.Security.Permissions; using System.Text; using System.Xml.XPath; using System.Diagnostics; @@ -327,6 +326,7 @@ namespace System.Xml return new XmlDocumentFragment (this); } + [PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)] public virtual XmlDocumentType CreateDocumentType (string name, string publicId, string systemId, string internalSubset) { @@ -773,6 +773,7 @@ namespace System.Xml } } + [PermissionSet (SecurityAction.InheritanceDemand, Unrestricted = true)] public virtual XmlNode ReadNode (XmlReader reader) { switch (reader.ReadState) { |