Demands
Code that performs some privileged action will make a demand for one or more permissions. The demand makes the CLR walk the call stack and for each method the CLR will ensure that the demanded permissions are in the method's assembly's granted permissions. If the permission is not granted then a security exception is thrown. This prevents downloaded code from performing privileged actions. For example, if an assembly is downloaded from an untrusted site the assembly will not have any file IO permissions and so if this assembly attempts to access a file code access security will throw an exception preventing the call.
Read more about this topic: Code Access Security
Famous quotes containing the word demands:
“A two-year-old can be taught to curb his aggressions completely if the parents employ strong enough methods, but the achievement of such control at an early age may be bought at a price which few parents today would be willing to pay. The slow education for control demands much more parental time and patience at the beginning, but the child who learns control in this way will be the child who acquires healthy self-discipline later.”
—Selma H. Fraiberg (20th century)
“The power of consumer goods ... has been engendered by the so-called liberal and progressive demands of freedom, and, by appropriating them, has emptied them of their meaning, and changed their nature.”
—Pier Paolo Pasolini (19221975)
“It is hardly surprising that children should enthusiastically start their education at an early age with the Absolute Knowledge of computer science; while they are unable to read, for reading demands making judgments at every line.... Conversation is almost dead, and soon so too will be those who knew how to speak.”
—Guy Debord (b. 1931)