"""Codex-Isolationskaefig (Landlock ABI>=4 + seccomp + rlimits, systemd --user --scope).

- iso_exec.py   : der unprivilegierte Wrapper (als Subprozess gestartet, nicht importiert).
- profiles.py   : baut die Landlock-Konfiguration je Profil (text | tools).
- caged_runner.py: IsolatedRunner, der systemd-run-Scope + iso_exec + Codex verdrahtet.

Herkunft und Review: docs/SOURCES.md, docs/SICHERHEIT.md.
"""
from __future__ import annotations

import os

ISO_EXEC_PATH = os.path.join(os.path.dirname(os.path.abspath(__file__)), "iso_exec.py")
# Wurzel des laufenden V3-Repos (<repo>/python/aria_router/isolation -> <repo>). Im tools-Profil gesperrt
# (Review #6), Bezugspunkt der Geschwister-Sperre aria-v3-* (1g) und der Allowlist-Pruefung beim Laden
# der Konfiguration (E44); Default von CagedCodexRunner.repo_root.
PKG_REPO_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))

from .profiles import RunDirs, text_profile, tools_profile  # noqa: E402

__all__ = ["ISO_EXEC_PATH", "PKG_REPO_ROOT", "RunDirs", "text_profile", "tools_profile"]
