2004-10-04 Sebastien Pouliot <sebastien@ximian.com>
authorSebastien Pouliot <sebastien@ximian.com>
Mon, 4 Oct 2004 22:21:53 +0000 (22:21 -0000)
committerSebastien Pouliot <sebastien@ximian.com>
Mon, 4 Oct 2004 22:21:53 +0000 (22:21 -0000)
* tabledefs.h: Added "internal" security actions to support non-CAS
permissions NonCasDemand, NonCasLinkDemand and NonCasInheritance.
Note: they do not seems to be used anymore in 2.0 (new metadata format)

svn path=/trunk/mono/; revision=34693

mono/metadata/ChangeLog
mono/metadata/tabledefs.h

index 00662653fc9a09716b09972c1563b8ec6c03f0fe..df79afe3a926cadd61faff374ef88e07c9c47def 100644 (file)
@@ -1,3 +1,9 @@
+2004-10-04  Sebastien Pouliot  <sebastien@ximian.com>
+
+       * tabledefs.h: Added "internal" security actions to support non-CAS
+       permissions NonCasDemand, NonCasLinkDemand and NonCasInheritance. 
+       Note: they do not seems to be used anymore in 2.0 (new metadata format)
+
 2004-10-04  Zoltan Varga  <vargaz@freemail.hu>
 
        * icall.c (ves_icall_InternalInvoke): Throw an exception when calling
index bc755e42c763cfcb11bd474967cead87c38da0dc..5e26b167d6f33b6c67489a148469ff71e3e0e280 100644 (file)
@@ -41,7 +41,8 @@ enum {
        FILE_CONTAINS_NO_METADATA   = 1
 };
 
-/* keep in synch with System.Security.Permissions.SecurityAction enum */
+/* keep in synch with System.Security.Permissions.SecurityAction enum 
+   (except for the special non-CAS cases) */
 enum {
        SECURITY_ACTION_DEMAND        = 2,
        SECURITY_ACTION_ASSERT        = 3,
@@ -52,7 +53,11 @@ enum {
        SECURITY_ACTION_REQMIN        = 8,
        SECURITY_ACTION_REQOPT        = 9,
        SECURITY_ACTION_REQREFUSE     = 10,
-       /* New in Fx 2.0 */
+       /* Special cases (non CAS permissions) */
+       SECURITY_ACTION_NONCASDEMAND        = 13,
+       SECURITY_ACTION_NONCASLINKDEMAND    = 14,
+       SECURITY_ACTION_NONCASINHERITANCE   = 15,
+       /* Fx 2.0 actions (for both CAS and non-CAS permissions) */
        SECURITY_ACTION_LINKDEMANDCHOICE    = 16,
        SECURITY_ACTION_INHERITDEMANDCHOICE = 17,
        SECURITY_ACTION_DEMANDCHOICE        = 18