def __init__(self): self.control = os.fdopen(CONTROL_FD, 'w+', 0) shmem = self.shmem_open() self.trustedthread = TrustedThread(sys.argv[1], THREAD_FD, shmem) memory_mappings = self.trustedthread.get_protected_sections() self.security = security.SecurityManager(memory_mappings)