Skip to content
Commits on Jun 1, 2015
  1. @vargaz

    Remove more CAS code.

    vargaz committed
Commits on May 5, 2015
  1. @vargaz
Commits on Apr 9, 2013
  1. @alexrp

    Support disabling of the security subsystem (CAS/CoreCLR).

    alexrp committed
    This could still use some future work. For example, we could get
    rid of lots of security code in the class libs. There are also some
    functions in the runtime that don't get removed because we don't
    use the stub macro approach for all public security functions.
    
    Based on Sebastien's patch.
Commits on Oct 23, 2009
  1. 2009-10-23 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* security-manager.c: Report if core-clr is active from
    	ves_icall_System_Security_SecurityManager_get_SecurityEnabled
    	to allow Moonlight BCL to behave appropriately (both in browser
    	and outside, e.g. smcs)
    
    
    svn path=/trunk/mono/; revision=144737
Commits on Feb 4, 2009
  1. @migueldeicaza

    update copyright notices

    migueldeicaza committed
    svn path=/trunk/mono/; revision=125626
Commits on May 27, 2008
  1. @vargaz

    2008-05-27 Zoltan Varga <vargaz@gmail.com>

    vargaz committed
    	* security-manager.c class.c: Set the class exception info by calling
    	mono_class_set_failure ().
    
    	* class.c (mono_class_get_exception_data): New accessor function.
    	(mono_class_set_failure): Store exception_data in the property hash.
    
    	* class-internals.h (struct _MonoClass): Store 'exception_data' outside
    	the struct as a property.
    
    svn path=/trunk/mono/; revision=104197
Commits on Aug 28, 2007
  1. @schani

    2007-08-28 Mark Probst <mark.probst@gmail.com>

    schani committed
    	* security-manager.c (mono_security_manager_get_methods):
    	LinkDemandSecurityException now has 2 arguments instead of 3.
    
    2007-08-28  Mark Probst  <mark.probst@gmail.com>
    
    	* mini.c (check_linkdemand): Remove embedded reference object in
    	call to LinkDemandSecurityException.
    	(mono_jit_compile_method_inner): Call LinkDemandSecurityException
    	with an IntPtr instead of a reference object.
    
    svn path=/trunk/mono/; revision=84933
Commits on Aug 20, 2007
  1. @schani

    2007-08-20 Mark Probst <mark.probst@gmail.com>

    schani committed
    	* security-core-clr.c, security-core-clr.h: CoreCLR security
    	utility functions.
    
    	* Makefile.am: Added security-core-clr.[ch].
    
    	* security-manager.c, security-manager.h: Functions and enum for
    	setting and getting the security mode.
    
    	* class.c: CoreCLR security checks.
    
    2007-08-20  Mark Probst  <mark.probst@gmail.com>
    
    	* mini.c: CoreCLR security checks.
    
    	* mini.h: Removed MonoSecurityMode (moved to
    	metadata/security-manager.h) and mono_security_mode global var
    	(replaced by set/get functions in security-manager.h).
    
    	* driver.c: Added "core-clr-test" security mode for testing.  Used
    	set-function for setting security mode.
    
    svn path=/trunk/mono/; revision=84458
Commits on Jul 18, 2006
  1. @kornelpal

    Redirect certain string constructors to CreateString () methods with …

    kornelpal committed
    …matching signature that improves performance.
    
    svn path=/trunk/mono/; revision=62706
Commits on Sep 2, 2005
  1. 2005-09-02 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* class.c: Fixed error reporting (method/class were inversed) for 
    	inheritance demands.
    	* security-manager.c|h: Added the AppDomain when calling the managed
    	System.Security.SecurityManager.InheritanceDemand method.
    
    
    svn path=/trunk/mono/; revision=49346
Commits on May 20, 2005
  1. 2005-05-20 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* class-internals.h: Added executioncontext_class field to 
    	MonoDefaults structure.
    	* domain.c: Cache System.Threading.ExecutionContext class in 
    	mono_defaults.
    	* object.c: Capture the ExecutionContext for asynchroneous calls in
    	 mono_async_result_new.
    	* object-internals.h: Added execution_context and original_context 
    	fields to MonoAsyncResult. Added execution_context to MonoThread.
    	* security-manager.c|.h: Added mono_get_context_capture_method to 
    	return the capture method (if required by the security manager or by
    	the framework version used).
    	* threadpool.c: Apply capture (if present) ExecutionContext in 
    	mono_async_invoke and revert to original context after it completes.
    
    
    svn path=/trunk/mono/; revision=44816
Commits on Mar 23, 2005
  1. 2005-03-23 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* security-manager.c: Skip inheritance checks for intra-corlib
    	class inheritance and method overrides. This skips a lot of checks
    	and (anyway) permissions cannot work until corlib is loaded.
    
    
    svn path=/trunk/mono/; revision=42141
Commits on Mar 17, 2005
  1. 2005-03-17 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* security-manager.c|h: Added demandunmanaged method and 
    	suppressunmanagedcodesecurity class to MonoSecurityManager.
    	Renamed aptc class to allowpartiallytrustedcallers.
    
    
    svn path=/trunk/mono/; revision=41949
Commits on Mar 10, 2005
  1. 2005-03-10 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* exception.c|h: Added mono_get_exception_reflection_type_load to
    	create a ReflectionTypeLoadException object.
    	* icall.c: Updated ves_icall_System_Reflection_Assembly_InternalGetType
    	to return NULL is a InheritanceDemand fails during reflection. Updated
    	ves_icall_System_Reflection_Assembly_GetTypes to throw a 
    	ReflectionTypeLoadException if an InheritanceDemand fails during 
    	reflection. Added icall mapping for GetLinkDemandSecurity.
    	* security-manager.c|h: Added ves_icall_System_Security_
    	SecurityManager_GetLinkDemandSecurity internal call to return the
    	class and methods permissions set for a LinkDemand. Removed unused
    	fields in MonoSecurityManager.
    
    
    svn path=/trunk/mono/; revision=41645
Commits on Feb 17, 2005
  1. 2005-02-17 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
     
    	* class.c: Added inheritance check when a method is overloaded (from a
    	virtual method or when implementing an interface) and when a class is
    	inherited. Added functions to set a failure for a class and to 
    	retreive the exception from a failure.
    	* class-internals.h: Added fields to MonoClass to keep the exception
    	information status for inheritance (or other exceptions) to be thrown
    	later (i.e. not at load time).
    	* object.c: Throw the inheritance SecurityException when a type is to 
    	be created with either class or method inheritance violations.
    	* reflection.c|h: Fix when getting declsec from a class. Removed 
    	unrequired code for class. Improved sanity in parameter naming.
    	* security-manager.c|h: Added functions to check for class and method
    	inheritance.
    
    
    svn path=/trunk/mono/; revision=40811
Commits on Feb 10, 2005
  1. Fix compilation warning for declsec.c

    Sebastien Pouliot committed
    svn path=/trunk/mono/; revision=40438
  2. 2005-02-10 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* metadata-internals.h: Added flags to MonoAssembly to cache the most
    	common security informations. This allows us to stay in unmanaged code
    	when doing LinkDemand and it's special cases (except for the first 
    	time for initialization). The flags a very much used with --security.
    	* reflection.c|h: Added code to get declarative security attributes 
    	for LinkDemand and InheritanceDemand. This required to refactor the
    	existing code for Demand.
    	* security-manager.c|h: Added new method fields for the special cases
    	of LinkDemand.
    
    
    svn path=/trunk/mono/; revision=40432
Commits on Jan 22, 2005
  1. 2005-01-22 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* icall.c: Add new internal calls for SecurityManager.SecurityEnabled
    	and CheckExecutionRights.
    	* reflection.c|h: Keep the index of the declarative security to be 
    	used, instead of the pointer, when AOT compiler is used. Also add 
    	class initialization when requesting demands.
    	* security-manager.c|h: Implement SecurityManager.SecurityEnabled and
    	CheckExecutionRights. Both properties are now FALSE by default, and
    	unmodifiable, unless the --security option is used.
    
    
    svn path=/trunk/mono/; revision=39350
Commits on Jan 7, 2005
  1. 2005-01-07 Sebastien Pouliot <sebastien@ximian.com>

    Sebastien Pouliot committed
    	* Makefile.am: Add the security manager to the build.
    	* security-manager.c|h: New. Initialization of the security manager.
    
    
    svn path=/trunk/mono/; revision=38507
Something went wrong with that request. Please try again.