dotgnu-pnet-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security AllowPartiall


From: Rhys Weatherley <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Security AllowPartiallyTrustedCallersAttribute.cs,1.1,1.2 ClrPermissions.cs,1.1,1.2 CodeAccessPermission.cs,1.5,1.6 IPermission.cs,1.2,1.3 ISecurityEncodable.cs,1.1,1.2 ISecurityPolicyEncodable.cs,1.1,1.2 IStackWalk.cs,1.1,1.2 MiniXml.cs,1.2,1.3 NamedPermissionSet.cs,1.1,1.2 PermissionSet.cs,1.6,1.7 PolicyLevelType.cs,1.1,1.2 SecurityElement.cs,1.5,1.6 SecurityException.cs,1.7,1.8 SecurityManager.cs,1.4,1.5 SecurityZone.cs,1.1,1.2 SuppressUnmanagedCodeSecurityAttribute.cs,1.2,1.3 XmlSyntaxException.cs,1.5,1.6
Date: Wed, 28 May 2003 23:13:00 -0400

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security
In directory subversions:/tmp/cvs-serv7044/runtime/System/Security

Modified Files:
        AllowPartiallyTrustedCallersAttribute.cs ClrPermissions.cs 
        CodeAccessPermission.cs IPermission.cs ISecurityEncodable.cs 
        ISecurityPolicyEncodable.cs IStackWalk.cs MiniXml.cs 
        NamedPermissionSet.cs PermissionSet.cs PolicyLevelType.cs 
        SecurityElement.cs SecurityException.cs SecurityManager.cs 
        SecurityZone.cs SuppressUnmanagedCodeSecurityAttribute.cs 
        XmlSyntaxException.cs 
Log Message:


Add new profile options - CONFIG_PERMISSIONS and CONFIG_POLICY_OBJECTS.


Index: AllowPartiallyTrustedCallersAttribute.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/AllowPartiallyTrustedCallersAttribute.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** AllowPartiallyTrustedCallersAttribute.cs    30 Mar 2003 11:58:44 -0000      
1.1
--- AllowPartiallyTrustedCallersAttribute.cs    29 May 2003 03:12:58 -0000      
1.2
***************
*** 25,29 ****
  using System;
  
! #if !ECMA_COMPAT
  
  [AttributeUsage(AttributeTargets.Assembly,
--- 25,29 ----
  using System;
  
! #if CONFIG_PERMISSIONS && !ECMA_COMPAT
  
  [AttributeUsage(AttributeTargets.Assembly,
***************
*** 40,44 ****
  }; // class AllowPartiallyTrustedCallersAttribute
  
! #endif
  
  }; // namespace System.Security
--- 40,44 ----
  }; // class AllowPartiallyTrustedCallersAttribute
  
! #endif // CONFIG_PERMISSIONS && !ECMA_COMPAT
  
  }; // namespace System.Security

Index: ClrPermissions.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/ClrPermissions.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ClrPermissions.cs   31 Mar 2003 05:47:36 -0000      1.1
--- ClrPermissions.cs   29 May 2003 03:12:58 -0000      1.2
***************
*** 33,36 ****
--- 33,38 ----
  {
  
+ #if CONFIG_PERMISSIONS
+ 
        // Accessible internal state.
        public PermissionSet granted;
***************
*** 64,67 ****
--- 66,78 ----
                                return new ClrPermissions(granted, denied, set);
                        }
+ 
+ #else
+ 
+       // Accessible internal state.
+       public Object granted;
+       public Object denied;
+       public Object permitOnly;
+ 
+ #endif
  
  }; // class ClrPermissions

Index: CodeAccessPermission.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/CodeAccessPermission.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** CodeAccessPermission.cs     23 Apr 2003 05:39:50 -0000      1.5
--- CodeAccessPermission.cs     29 May 2003 03:12:58 -0000      1.6
***************
*** 23,26 ****
--- 23,28 ----
  {
  
+ #if CONFIG_PERMISSIONS
+ 
  using System;
  using System.Security.Permissions;
***************
*** 272,275 ****
--- 274,279 ----
  
  }; // class CodeAccessPermission
+ 
+ #endif // CONFIG_PERMISSIONS
  
  }; // namespace System.Security

Index: IPermission.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/IPermission.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** IPermission.cs      30 Mar 2003 11:58:44 -0000      1.2
--- IPermission.cs      29 May 2003 03:12:58 -0000      1.3
***************
*** 23,26 ****
--- 23,28 ----
  {
  
+ #if CONFIG_PERMISSIONS
+ 
  using System;
  
***************
*** 45,48 ****
--- 47,52 ----
  
  }; // interface IPermission
+ 
+ #endif // CONFIG_PERMISSIONS
  
  }; // namespace System.Security

Index: ISecurityEncodable.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/ISecurityEncodable.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ISecurityEncodable.cs       30 Mar 2003 11:58:44 -0000      1.1
--- ISecurityEncodable.cs       29 May 2003 03:12:58 -0000      1.2
***************
*** 23,26 ****
--- 23,28 ----
  {
  
+ #if CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS
+ 
  using System;
  
***************
*** 37,40 ****
--- 39,44 ----
  
  }; // interface ISecurityEncodable
+ 
+ #endif // CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS
  
  }; // namespace System.Security

Index: ISecurityPolicyEncodable.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/ISecurityPolicyEncodable.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** ISecurityPolicyEncodable.cs 30 Mar 2003 11:58:44 -0000      1.1
--- ISecurityPolicyEncodable.cs 29 May 2003 03:12:58 -0000      1.2
***************
*** 23,27 ****
  {
  
! #if !ECMA_COMPAT
  
  using System;
--- 23,27 ----
  {
  
! #if CONFIG_POLICY_OBJECTS
  
  using System;
***************
*** 36,40 ****
  }; // interface ISecurityPolicyEncodable
  
! #endif // !ECMA_COMPAT
  
  }; // namespace System.Security
--- 36,40 ----
  }; // interface ISecurityPolicyEncodable
  
! #endif // CONFIG_POLICY_OBJECTS
  
  }; // namespace System.Security

Index: IStackWalk.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/IStackWalk.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** IStackWalk.cs       30 Mar 2003 11:58:44 -0000      1.1
--- IStackWalk.cs       29 May 2003 03:12:58 -0000      1.2
***************
*** 23,26 ****
--- 23,28 ----
  {
  
+ #if CONFIG_PERMISSIONS
+ 
  using System;
  
***************
*** 47,50 ****
--- 49,54 ----
  
  }; // interface IStackWalk
+ 
+ #endif // CONFIG_PERMISSIONS
  
  }; // namespace System.Security

Index: MiniXml.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/MiniXml.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** MiniXml.cs  5 Apr 2003 06:28:32 -0000       1.2
--- MiniXml.cs  29 May 2003 03:12:58 -0000      1.3
***************
*** 22,25 ****
--- 22,27 ----
  {
  
+ #if CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS
+ 
  using System;
  
***************
*** 393,396 ****
--- 395,400 ----
  
  }; // class MiniXml
+ 
+ #endif // CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS
  
  }; // namespace System.Security

Index: NamedPermissionSet.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/NamedPermissionSet.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** NamedPermissionSet.cs       30 Mar 2003 11:58:44 -0000      1.1
--- NamedPermissionSet.cs       29 May 2003 03:12:58 -0000      1.2
***************
*** 23,27 ****
  {
  
! #if !ECMA_COMPAT
  
  using System;
--- 23,27 ----
  {
  
! #if CONFIG_PERMISSIONS && !ECMA_COMPAT
  
  using System;
***************
*** 146,150 ****
  }; // class NamedPermissionSet
  
! #endif // !ECMA_COMPAT
  
  }; // namespace System.Security
--- 146,150 ----
  }; // class NamedPermissionSet
  
! #endif // CONFIG_PERMISSIONS && !ECMA_COMPAT
  
  }; // namespace System.Security

Index: PermissionSet.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/PermissionSet.cs,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -r1.6 -r1.7
*** PermissionSet.cs    23 Apr 2003 05:39:50 -0000      1.6
--- PermissionSet.cs    29 May 2003 03:12:58 -0000      1.7
***************
*** 23,26 ****
--- 23,28 ----
  {
  
+ #if CONFIG_PERMISSIONS
+ 
  using System;
  using System.Collections;
***************
*** 569,572 ****
--- 571,576 ----
  
  }; // class PermissionSet
+ 
+ #endif // CONFIG_PERMISSIONS
  
  }; // namespace System.Security

Index: PolicyLevelType.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/PolicyLevelType.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** PolicyLevelType.cs  30 Mar 2003 11:58:44 -0000      1.1
--- PolicyLevelType.cs  29 May 2003 03:12:58 -0000      1.2
***************
*** 23,27 ****
  {
  
! #if !ECMA_COMPAT
  
  public enum PolicyLevelType
--- 23,27 ----
  {
  
! #if CONFIG_POLICY_OBJECTS
  
  public enum PolicyLevelType
***************
*** 35,39 ****
  }; // enum PolicyLevelType
  
! #endif // !ECMA_COMPAT
  
  }; // namespace System.Security
--- 35,39 ----
  }; // enum PolicyLevelType
  
! #endif // CONFIG_POLICY_OBJECTS
  
  }; // namespace System.Security

Index: SecurityElement.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityElement.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** SecurityElement.cs  23 Apr 2003 05:39:50 -0000      1.5
--- SecurityElement.cs  29 May 2003 03:12:58 -0000      1.6
***************
*** 23,26 ****
--- 23,28 ----
  {
  
+ #if CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS
+ 
  using System;
  using System.Text;
***************
*** 637,640 ****
--- 639,644 ----
  
  }; // class SecurityElement
+ 
+ #endif // CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS
  
  }; // namespace System.Security

Index: SecurityException.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityException.cs,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -r1.7 -r1.8
*** SecurityException.cs        26 May 2003 04:41:21 -0000      1.7
--- SecurityException.cs        29 May 2003 03:12:58 -0000      1.8
***************
*** 28,32 ****
  public class SecurityException : SystemException
  {
! #if !ECMA_COMPAT
        // Internal state.
        private String permissionState;
--- 28,32 ----
  public class SecurityException : SystemException
  {
! #if CONFIG_PERMISSIONS
        // Internal state.
        private String permissionState;
***************
*** 51,55 ****
                        }
  #endif
! #if !ECMA_COMPAT
        public SecurityException(String message, Type type)
                        : base(message)
--- 51,55 ----
                        }
  #endif
! #if CONFIG_PERMISSIONS
        public SecurityException(String message, Type type)
                        : base(message)
***************
*** 83,87 ****
                        }
  
! #if !ECMA_COMPAT
  
        // Get the permission type.
--- 83,87 ----
                        }
  
! #if CONFIG_PERMISSIONS
  
        // Get the permission type.
***************
*** 121,124 ****
--- 121,132 ----
                        }
  
+       // Convert this object into a string.
+       public override String ToString()
+                       {
+                               return base.ToString();
+                       }
+ 
+ #endif // CONFIG_PERMISSIONS
+ 
  #if CONFIG_SERIALIZATION
  
***************
*** 128,143 ****
                        {
                                base.GetObjectData(info, context);
                                info.AddValue("PermissionState", 
permissionState);
                        }
  
  #endif
- 
-       // Convert this object into a string.
-       public override String ToString()
-                       {
-                               return base.ToString();
-                       }
- 
- #endif // !ECMA_COMPAT
  
  }; // class SecurityException
--- 136,145 ----
                        {
                                base.GetObjectData(info, context);
+                       #if CONFIG_PERMISSIONS
                                info.AddValue("PermissionState", 
permissionState);
+                       #endif
                        }
  
  #endif
  
  }; // class SecurityException

Index: SecurityManager.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityManager.cs,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** SecurityManager.cs  25 Apr 2003 03:53:07 -0000      1.4
--- SecurityManager.cs  29 May 2003 03:12:58 -0000      1.5
***************
*** 23,27 ****
  {
  
! #if !ECMA_COMPAT
  
  using System.Collections;
--- 23,27 ----
  {
  
! #if !ECMA_COMPAT && (CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS)
  
  using System.Collections;
***************
*** 33,36 ****
--- 33,38 ----
        private SecurityManager() {}
  
+ #if CONFIG_PERMISSIONS
+ 
        // Determine if a specific permission has been granted.
        [TODO]
***************
*** 45,48 ****
--- 47,54 ----
                        }
  
+ #endif
+ 
+ #if CONFIG_POLICY_OBJECTS
+ 
        // Load policy level information from a file.
        [TODO]
***************
*** 78,81 ****
--- 84,89 ----
                        }
  
+ #if CONFIG_PERMISSIONS
+ 
        // Resolve policy information.
        [TODO]
***************
*** 96,99 ****
--- 104,109 ----
                        }
  
+ #endif
+ 
        // Resolve policy group information.
        [TODO]
***************
*** 151,157 ****
                        }
  
  }; // class SecurityManager
  
! #endif // !ECMA_COMPAT
  
  }; // namespace System.Security
--- 161,170 ----
                        }
  
+ #endif // CONFIG_POLICY_OBJECTS
+ 
  }; // class SecurityManager
  
! #endif // !ECMA_COMPAT && (CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS)
! 
  
  }; // namespace System.Security

Index: SecurityZone.cs
===================================================================
RCS file: /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SecurityZone.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** SecurityZone.cs     30 Mar 2003 11:58:44 -0000      1.1
--- SecurityZone.cs     29 May 2003 03:12:58 -0000      1.2
***************
*** 23,27 ****
  {
  
! #if !ECMA_COMPAT
  
  public enum SecurityZone
--- 23,27 ----
  {
  
! #if CONFIG_POLICY_OBJECTS
  
  public enum SecurityZone
***************
*** 37,41 ****
  }; // enum SecurityZone
  
! #endif // !ECMA_COMPAT
  
  }; // namespace System.Security
--- 37,41 ----
  }; // enum SecurityZone
  
! #endif // CONFIG_POLICY_OBJECTS
  
  }; // namespace System.Security

Index: SuppressUnmanagedCodeSecurityAttribute.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/SuppressUnmanagedCodeSecurityAttribute.cs,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** SuppressUnmanagedCodeSecurityAttribute.cs   30 Mar 2003 11:58:44 -0000      
1.2
--- SuppressUnmanagedCodeSecurityAttribute.cs   29 May 2003 03:12:58 -0000      
1.3
***************
*** 27,31 ****
  using System;
  
! #if !ECMA_COMPAT
  
  [AttributeUsage(AttributeTargets.Method |
--- 27,31 ----
  using System;
  
! #if CONFIG_PERMISSIONS && !ECMA_COMPAT
  
  [AttributeUsage(AttributeTargets.Method |
***************
*** 44,48 ****
  }; // class SuppressUnmanagedCodeSecurityAttribute
  
! #endif
  
  }; // namespace System.Security
--- 44,48 ----
  }; // class SuppressUnmanagedCodeSecurityAttribute
  
! #endif // CONFIG_PERMISSIONS && !ECMA_COMPAT
  
  }; // namespace System.Security

Index: XmlSyntaxException.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Security/XmlSyntaxException.cs,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** XmlSyntaxException.cs       26 May 2003 04:41:21 -0000      1.5
--- XmlSyntaxException.cs       29 May 2003 03:12:58 -0000      1.6
***************
*** 23,27 ****
  {
  
! #if !ECMA_COMPAT
  
  using System;
--- 23,27 ----
  {
  
! #if !ECMA_COMPAT && (CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS)
  
  using System;
***************
*** 59,63 ****
  }; // class XmlSyntaxException
  
! #endif // !ECMA_COMPAT
  
  }; // namespace System.Security
--- 59,63 ----
  }; // class XmlSyntaxException
  
! #endif // !ECMA_COMPAT && (CONFIG_PERMISSIONS || CONFIG_POLICY_OBJECTS)
  
  }; // namespace System.Security





reply via email to

[Prev in Thread] Current Thread [Next in Thread]