December, 2004

  • .NET Security Blog

    Using CasPol to Fully Trust a Share

    • 73 Comments
    Since network shares by default only get LocalIntranet permissions, it's relatively common to want to use CasPol to fully trust some shares that you control and know are safe. However, CasPol syntax being what it is, the command to do this isn't immediately...
  • .NET Security Blog

    Handling Entry Assemblies that Won't Load: Method 1

    • 8 Comments
    Last week, when I posted about failing to run in partial trust gracefully , the method I showed only worked if your main assembly could be loaded. However, if it has a minimum permission request that cannot be satisfied, your main method won't ever be...
  • .NET Security Blog

    Why Do I Still Get an Exception Accessing a File with Full FileIOPermission?

    • 5 Comments
    This issue (and its cousin: Why Do I Still Get an Exception Accessing the Registry with Full RegistryPermission?) come up fairly frequently on the newsgroups. The reasoning is actually very simple. The exception being thrown in these cases arises from...
  • .NET Security Blog

    MS.StrongName\KeyFile.cs

    • 4 Comments
    1 using System; 2 using System.Diagnostics; 3 using System.Globalization; 4 using System.IO; 5 using System.Security; 6 7 namespace MS.StrongName 8 { 9 /// < summary > 10 /// KeyFile I/O methods 11 /// </ summary > 12 public static class KeyFile...
  • .NET Security Blog

    Handling Entry Assemblies that Won't Load: Method 2

    • 3 Comments
    The last two days we worked on a shim application that allowed us to handle gracefully the condition where a program's main assembly will not load due to declarative security issues . While we were definitely able to improve on the shim yesterday, there...
  • .NET Security Blog

    Handling Entry Assemblies that Won't Load: Method 1.1

    • 2 Comments
    Yesterday we developed a simple Shim application in order to fail gracefully when our application's entry assembly doesn't have enough permission to meet its minimum grant set, and therefore won't be loaded. However, there were quite a few problems with...
  • .NET Security Blog

    Home for the Holidays

    • 2 Comments
    I'm going to be on vacation until the end of December, so this blog will be going dark for about a week and a half. It'll be nice to get away for a while, especially since I haven't taken a vacation since last December ... I'm definitely looking forward...
  • .NET Security Blog

    Hitting the Mailbag

    • 2 Comments
    I've gotten quite a few questions from this blog over the past several months. And although I can't answer all of them, here's some quick answers to some of the more common ones. If you do have more questions, its usually best to post them in the comments...
  • .NET Security Blog

    Managed StrongName Refactoring Complete

    • 2 Comments
    I've completed refactoring the Managed StrongName project , and I've uploaded the new sources. The changes I made were all pretty much what I laid out in the previous post. We now have two modules built, msn.exe which is a thin wrapper around MS.StrongName...
  • .NET Security Blog

    Failing to Run in Partial Trust Gracefully

    • 2 Comments
    When you write an application that requires a high level of trust to run properly, when a user tries to run that application from a location that gives it lower levels of trust, they're greeted with a rather unfriendly unhandled SecurityException. This...
  • .NET Security Blog

    msn\msn.txt

    • 2 Comments
    1 # Error messages 2 BadFile=Invalid file specified: {0} 3 BadKeyContainer=Invakid key container specified: {0} 4 BadKeySize=Invalid key size specified: {0} 5 BadOperation=Error completing operation: {0} 6 CompareToNonCommand=Object must be of type Command...
  • .NET Security Blog

    msn\Commands.cs

    • 2 Comments
    1 using System; 2 using System.Diagnostics; 3 using System.Globalization; 4 using System.Text; 5 using MS.StrongName; 6 7 namespace MS.StrongName.ManagedSN 8 { 9 /// < summary > 10 /// Handler for each of the commands that the managed strong name...
  • .NET Security Blog

    MS.StrongName\Keys.cs

    • 1 Comments
    1 using System; 2 using System.Diagnostics; 3 using System.Globalization; 4 using System.Runtime.InteropServices; 5 using System.Security; 6 using Microsoft.Win32; 7 using MS.StrongName.Native; 8 9 namespace MS.StrongName 10 { 11 /// < summary >...
  • .NET Security Blog

    MS.StrongName\Native\NativeMethods.cs

    • 1 Comments
    1 using System; 2 using System.Runtime.InteropServices; 3 4 namespace MS.StrongName.Native 5 { 6 /// < summary > 7 /// P/Invoke declarations for strong name APIs 8 /// </ summary > 9 internal static class NativeMethods 10 { 11 /// < summary...
  • .NET Security Blog

    MS.StrongName\VerificationResult.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName 4 { 5 /// < summary > 6 /// Results of signature verification 7 /// </ summary > 8 public enum VerificationResult 9 { 10 /// < summary > 11 /// The assembly's signature did not verify 12 /...
  • .NET Security Blog

    MS.StrongName\Utility.cs

    • 0 Comments
    1 using System; 2 using System.Diagnostics; 3 using System.IO; 4 using System.Security; 5 using System.Runtime.InteropServices; 6 using MS.StrongName.Native; 7 8 namespace MS.StrongName 9 { 10 /// < summary > 11 /// General-purpose utility methods...
  • .NET Security Blog

    MS.StrongName\Registry.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName 4 { 5 /// < summary > 6 /// Constants for the configuraiton registry keys 7 /// </ summary > 8 internal static class Registry 9 { 10 /// < summary > 11 /// Name of the registry key under HKLM...
  • .NET Security Blog

    MS.StrongName\MS.StrongName.txt

    • 0 Comments
    1 BadFile=Invalid file specified: {0} 2 BadOperation=Error completing operation: {0} 3 CouldNotOpenMachineStoreKey=Could not open the strong name configuration key 4 InternalError=Internal error processing request 5 InvalidAssemblyName=Invalid assembly...
  • .NET Security Blog

    MS.StrongName\KeyStore.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName 4 { 5 /// < summary > 6 /// Key stores available for use 7 /// </ summary > 8 public enum KeyStore 9 { 10 /// < summary > 11 /// Machine wide key store 12 /// </ summary > 13 Machine...
  • .NET Security Blog

    MS.StrongName\Signatures.cs

    • 0 Comments
    1 using System; 2 using System.Diagnostics; 3 using System.Globalization; 4 using System.IO; 5 using MS.StrongName.Native; 6 7 namespace MS.StrongName 8 { 9 /// < summary > 10 /// Class that exposes the managed StrongName API for dealing with signatures...
  • .NET Security Blog

    msn\Command.cs

    • 0 Comments
    1 using System; 2 using System.Diagnostics; 3 4 namespace MS.StrongName.ManagedSN 5 { 6 /// < summary > 7 /// Handler for a specific command line option 8 /// </ summary > 9 /// < param name = "arguments" > List of all the...
  • .NET Security Blog

    MS.StrongName\Native\StrongNameOutFlags.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName.Native 4 { 5 /// < summary > 6 /// Flags output from the strong name verification functions 7 /// </ summary > 8 [Flags] 9 internal enum StrongNameOutFlags : int 10 { 11 /// < summary > 12...
  • .NET Security Blog

    MS.StrongName\Native\StrongNameKeyGenFlags.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName.Native 4 { 5 /// < summary > 6 /// Flags for use with strong name key gneeration methods 7 /// </ summary > 8 [Flags] 9 internal enum StrongNameKeyGenFlags : int 10 { 11 /// < summary > 12...
  • .NET Security Blog

    MS.StrongName\Native\StrongNameInFlags.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName.Native 4 { 5 /// < summary > 6 /// Input flags for use with the strong name verification functions 7 /// </ summary > 8 [Flags] 9 internal enum StrongNameInFlags : int 10 { 11 /// < summary >...
  • .NET Security Blog

    msn\Log.cs

    • 0 Comments
    1 using System; 2 3 namespace MS.StrongName.ManagedSN 4 { 5 /// < summary > 6 /// Handles all I/O with the user 7 /// </ summary > 8 internal sealed class Log 9 { 10 private static bool quietMode = false ; 11 12 /// < summary > 13 /...
Page 1 of 2 (27 items) 12