diff options
author | Sebastien Pouliot <sebastien@ximian.com> | 2005-05-26 16:34:41 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@ximian.com> | 2005-05-26 16:34:41 +0400 |
commit | cbe2286cc86a28eb46279be81036fd3df128e083 (patch) | |
tree | cdb0e55dad1fa4130918562a810aab79b0c6db20 /mcs/class/corlib/System.Security/PermissionSet.cs | |
parent | e06d79b8066810e8bee02a74c1d2a4d6386199fe (diff) |
2005-05-26 Sebastien Pouliot <sebastien@ximian.com>
* CodeAccessPermission.cs: Fix typo for PermitOnly. Added ComVisible
attribute for NET_2_0 profile.
* PermissionSet.cs: Changed static string to const. Added ComVisible
attribute for NET_2_0 profile.
* SecurityContext.cs: Capture the identity token but don't create a
WindowsIdentity instance unless required (e.g. Run). This requires
less privileges (so it runs better that way under CAS).
svn path=/trunk/mcs/; revision=45039
Diffstat (limited to 'mcs/class/corlib/System.Security/PermissionSet.cs')
-rw-r--r-- | mcs/class/corlib/System.Security/PermissionSet.cs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/mcs/class/corlib/System.Security/PermissionSet.cs b/mcs/class/corlib/System.Security/PermissionSet.cs index ad9bc746af8..0d8a78ab502 100644 --- a/mcs/class/corlib/System.Security/PermissionSet.cs +++ b/mcs/class/corlib/System.Security/PermissionSet.cs @@ -46,9 +46,12 @@ namespace System.Security { [Serializable] // Microsoft public key - i.e. only MS signed assembly can inherit from PermissionSet (1.x) or (2.0) FullTrust assemblies [StrongNameIdentityPermission (SecurityAction.InheritanceDemand, PublicKey="002400000480000094000000060200000024000052534131000400000100010007D1FA57C4AED9F0A32E84AA0FAEFD0DE9E8FD6AEC8F87FB03766C834C99921EB23BE79AD9D5DCC1DD9AD236132102900B723CF980957FC4E177108FC607774F29E8320E92EA05ECE4E821C0A5EFE8F1645C4C0C93C1AB99285D622CAA652C1DFAD63D745D6F2DE5F17E5EAF0FC4963D261C8A12436518206DC093344D5AD293")] +#if NET_2_0 + [ComVisible (true)] +#endif public class PermissionSet: ISecurityEncodable, ICollection, IEnumerable, IStackWalk, IDeserializationCallback { - private static string tagName = "PermissionSet"; + private const string tagName = "PermissionSet"; private const int version = 1; private static object[] psNone = new object [1] { PermissionState.None }; |