You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e.g. prejitgrant. The library XML file does not contain the numeric value for that (and other) security actions. Find out where those are officially defined.
(One reference defining those security actions & their numeric values is Serge Lidin's ILAsm book... which brings up the question how out-of-band content & annotations should be added to this repository.)
From Serge Lidin, Inside Microsoft .NET IL Assembler, published in 2002 by Microsoft Press, lists the following security actions on p. 344 (emphasis in bold by me):
Pre-JIT Grant (persisted grant, set at pre-JIT compilation time by the Ngen.exe utility): code 0x000B, ILAsm keyword prejitgrant.
Pre-JIT Deny (persisted denial, set at pre-JIT compilation time): code 0x000C, ILAsm keyword prejitdeny. This security action is not supported in the first release of the common language runtime.
Non-CAS Demand: code 0x000D, ILAsm keyword noncasdemand. This action is similar to Demand, but the permission classes that make up the permission set must not be derived from_System.Security.Permissions.CodeAccessPermission_.
Non-CAS Link Demand: code 0x000E, ILAsm keyword noncaslinkdemand. This action is similar to Link Demand but has the same limitation as Non-CAS Demand.
Non-CAS Inheritance Demand: code 0x000F, ILAsm keyword noncasinheritance. This action is similar to _Inheritance Demand_but has the same limitation as Non-CAS Demand.
// Wait for an actual need before exposing these. They all have ilasm keywords, but some are missing from the CLI spec and// and none are defined in System.Security.Permissions.SecurityAction.//Request = 0x0001,//PrejitGrant = 0x000B,//PrejitDeny = 0x000C,//NonCasDemand = 0x000D,//NonCasLinkDemand = 0x000E,//NonCasInheritanceDemand = 0x000F,
From Mono source code (src/mono/mono/metadata/runtime/tabledefs.h):
/* 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
The text was updated successfully, but these errors were encountered:
e.g. prejitgrant. The library XML file does not contain the numeric value for that (and other) security actions. Find out where those are officially defined.
(One reference defining those security actions & their numeric values is Serge Lidin's ILAsm book... which brings up the question how out-of-band content & annotations should be added to this repository.)
From Serge Lidin, Inside Microsoft .NET IL Assembler, published in 2002 by Microsoft Press, lists the following security actions on p. 344 (emphasis in bold by me):
In System.Reflection.Metadata:
https://github.com/dotnet/runtime/blob/ccf6aedb63c37ea8e10e4f5b5d9d23a69bdd9489/src/libraries/System.Reflection.Metadata/src/System/Reflection/System.Reflection.cs#L103-L110
From Mono source code (
src/mono/mono/metadata/runtime/tabledefs.h
):https://github.com/dotnet/runtime/blob/cd622cd50c7104fc14a25fb199f8377472920f2e/src/mono/mono/metadata/tabledefs.h#L57-L64
The text was updated successfully, but these errors were encountered: