diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-01-27 20:54:57 +0300 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-01-27 20:54:57 +0300 |
commit | b3bda2812fd6d94b6aeea109f676b93806bb40d2 (patch) | |
tree | 3b515888410080867d3e76860a8f8d67cf65f0a7 /mcs/class/corlib/System.Security/SecurityManager.cs | |
parent | 63648df1550725b8d47d71c6de6bbf62cda6ce15 (diff) |
2005-01-27 Sebastien Pouliot <sebastien@ximian.com>
* CodeAccessPermission.cs: Process Deny for empty PermissionSet (e.g.
an unrestricted permission set must deny all permissions).
* SecurityException.cs: Added missing HResult to NET_2_0 constructors.
Added securiy permissions for GrantedSet, RefusedSet and
PermissionState properties (to avoid leaking policy informations).
Make sure that ToString() always works.
* SecurityManager.cs: Remove outdated comments (now that the
declarative attributes are in place).
svn path=/trunk/mcs/; revision=39655
Diffstat (limited to 'mcs/class/corlib/System.Security/SecurityManager.cs')
-rw-r--r-- | mcs/class/corlib/System.Security/SecurityManager.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/mcs/class/corlib/System.Security/SecurityManager.cs b/mcs/class/corlib/System.Security/SecurityManager.cs index d0a7b47d717..2c84ef97b2a 100644 --- a/mcs/class/corlib/System.Security/SecurityManager.cs +++ b/mcs/class/corlib/System.Security/SecurityManager.cs @@ -7,7 +7,7 @@ // // (C) Nick Drochak // Portions (C) 2004 Motus Technologies Inc. (http://www.motus.com) -// Copyright (C) 2004 Novell, Inc (http://www.novell.com) +// Copyright (C) 2004-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 @@ -134,7 +134,6 @@ namespace System.Security { [SecurityPermission (SecurityAction.Demand, Flags=SecurityPermissionFlag.ControlPolicy)] public static PolicyLevel LoadPolicyLevelFromFile (string path, PolicyLevelType type) { - // throw a SecurityException if we don't have ControlPolicy permission if (path == null) throw new ArgumentNullException ("path"); @@ -152,7 +151,6 @@ namespace System.Security { [SecurityPermission (SecurityAction.Demand, Flags=SecurityPermissionFlag.ControlPolicy)] public static PolicyLevel LoadPolicyLevelFromString (string str, PolicyLevelType type) { - // throw a SecurityException if we don't have ControlPolicy permission if (null == str) throw new ArgumentNullException ("str"); @@ -170,7 +168,6 @@ namespace System.Security { [SecurityPermission (SecurityAction.Demand, Flags=SecurityPermissionFlag.ControlPolicy)] public static IEnumerator PolicyHierarchy () { - // throw a SecurityException if we don't have ControlPolicy permission return Hierarchy; } @@ -280,7 +277,6 @@ namespace System.Security { [SecurityPermission (SecurityAction.Demand, Flags=SecurityPermissionFlag.ControlPolicy)] public static void SavePolicy () { - // throw a SecurityException if we don't have ControlPolicy permission IEnumerator e = Hierarchy; while (e.MoveNext ()) { PolicyLevel level = (e.Current as PolicyLevel); |