TROILUS: This is the monstruosity in love, lady; that the will is infinite and the execution confin’d; that the desire is boundless and the act a slave to limit.
— Troilus and Cressida, III, ii, 82–84.
When a program executes, it interacts with its environment. The security policy allows some interactions and disallows others. The confinement problem deals with prevention of processes from taking disallowed actions. Beginning with Lampson’s characterization of this problem, this chapter continues with a discussion of methods for confinement such as virtual machines and sandboxes. It concludes with a discussion of covert channels. This chapter focuses on confinement. Chapter 23, “Malware,” discusses tools and techniques ...