Closed device jail, and platform security