(self)
| 302 | return directory / "_setup.0.profraw" |
| 303 | |
| 304 | def restore_seed_mode(self): |
| 305 | if self.seed is None or self.seed_identity is None: |
| 306 | return |
| 307 | if not all(row["quiescent"] for row in self.common.PROCESS_RECORDS): |
| 308 | self.receipt["seed_cleanup"] = "retained unchanged: quiescence not established" |
| 309 | return |
| 310 | if self.fingerprint(self.seed) != self.seed_identity: |
| 311 | self.receipt["seed_cleanup"] = "retained unchanged: original seed identity/content differs" |
| 312 | raise Infrastructure("seed changed before controlled mode restoration") |
| 313 | os.chmod(str(self.seed), 0o600) |
| 314 | self.receipt["seed_cleanup"] = {"owned_mode_restored": 0o600, |
| 315 | "post_cleanup": self.fingerprint(self.seed)} |
| 316 | |
| 317 | |
| 318 | def main(): |
no test coverage detected