Patent ID: 7770202

Claim:
An apparatus comprising: one or more processors; and memory communicatively coupled to the one or more processors, the memory having stored thereon a plurality of instructions that, when executed on the apparatus, configure the one or more processors to implement: a virtual machine, instantiated in managed code to execute with a runtime loader, for executing a first assembly and a second assembly of one or more files instantiated in the managed code; the first assembly configured to make a call for access in the managed code to the second assembly in the managed code at Just-In-Time (JIT) compilation time; a JIT compiler for compiling each of the first assembly and the second assembly into native code for execution as native code, wherein during compilation, based upon a determination by a determining component that it is unknown whether the call from the first assembly to the second assembly should be permitted, the JIT compiler is configured to insert a runtime stub into the call before compiling the first assembly and the second assembly; an interceptor for intercepting the call from the first assembly to the second assembly at a runtime; and the determining component, based upon a user identification (ID) for at least one of the first assembly and the second assembly of the one or more files, for determining, at the runtime, access privileges of the first assembly of the one or more files to the second assembly of the one or more files.