Stack Walks
A stack walk is an essential, but expensive, part of the security system. The following description is a logical model of how stack walks and the security system work within the CLR.
A new activation record is put on the stack every time a method is called. This record contains the parameters passed to the method (if any), the address to return to when this function completes, and any local variables. As a program executes, the stack grows and shrinks as functions are called. At certain stages during execution, the thread may seek to access a system resource, such as the file system. Before allowing this access, the security system may demand a stack walk to verify that all functions in the call chain have permission to access the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access