Author: gnorton
Date: 2008-02-15 12:38:19 -0500 (Fri, 15 Feb 2008)
New Revision: 95771

Modified:
   trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
   
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
Log:
In .:
2008-02-15  Geoff Norton  <[EMAIL PROTECTED]>

        * MonoDevelop.Core.Execution/ProcessService.cs: Disable .NET remoting 
        security on the TCP channel.



Modified: trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2008-02-15 
17:35:42 UTC (rev 95770)
+++ trunk/monodevelop/main/src/core/MonoDevelop.Core/ChangeLog  2008-02-15 
17:38:19 UTC (rev 95771)
@@ -1,3 +1,8 @@
+2008-02-15  Geoff Norton  <[EMAIL PROTECTED]>
+
+       * MonoDevelop.Core.Execution/ProcessService.cs: Disable .NET remoting 
+       security on the TCP channel.
+
 2008-02-15  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * MonoDevelop.Core/Properties.cs: Improve performance of Get method.

Modified: 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
===================================================================
--- 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
       2008-02-15 17:35:42 UTC (rev 95770)
+++ 
trunk/monodevelop/main/src/core/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
       2008-02-15 17:38:19 UTC (rev 95771)
@@ -31,6 +31,7 @@
 using System.IO;
 using System.Collections.Generic;
 using System.Threading;
+using System.Collections;
 using System.Diagnostics;
 using Mono.Remoting.Channels.Unix;
 using System.Runtime.Remoting;
@@ -293,8 +294,16 @@
                {
                        if (remotingChannel == "tcp") {
                                IChannel ch = ChannelServices.GetChannel 
("tcp");
-                               if (ch == null)
-                                       ChannelServices.RegisterChannel (new 
TcpChannel (0), false);
+                               if (ch == null) {
+                                       IDictionary dict = new Hashtable ();
+                                       BinaryClientFormatterSinkProvider 
clientProvider = new BinaryClientFormatterSinkProvider();
+                                       BinaryServerFormatterSinkProvider 
serverProvider = new BinaryServerFormatterSinkProvider();
+
+                                       dict ["port"] = 0;
+                                       serverProvider.TypeFilterLevel = 
System.Runtime.Serialization.Formatters.TypeFilterLevel.Full;
+
+                                       ChannelServices.RegisterChannel (new 
TcpChannel (dict, clientProvider, serverProvider), false);
+                               }
                        } else {
                                IChannel ch = ChannelServices.GetChannel 
("unix");
                                if (ch == null) {

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to