1. A method of producing a compartment specification for an application, comprising: executing the application; determining resource requests made by the executing application; and recording the resource requests in the compartment specification.