Expand description
Host filesystem honesty helpers for cloud-sync / placeholder / LSM hazards.
- FS-007 DriveFS / sync-root detect + advisory (+ optional refuse flag)
- WIN-003 OneDrive Cloud Filter placeholder detect + honesty
- FS-014 SELinux / AppArmor detect + errno honesty (not host-policy bypass)
Cite: .spec/research/20261110222000-remaining-gaps-ffi-external-unblock.research.md
.spec/research/20261111001816-partial-completion-unblock-roadmap.research.md
.spec/evidence/20261110221919-fs007-gdrive-host-advisory
Structs§
- Cloud
Detection - Detection result — always advisory unless a future SoT Claimed slice says otherwise.
- Probe
Report
Enums§
- Cloud
Kind - Kind of cloud / sync substrate detected under a path.
- Host
FsError - LsmKind
- Host LSM / MAC policy substrate (FS-014) — detect only.
Functions§
- detect_
cloud_ sync - Probe whether
pathlives under a known cloud-sync substrate. - detect_
lsm - Detect SELinux / AppArmor presence via sysfs (Linux). Non-Linux → empty.
- git_
under_ sync_ root - True when
path(or its.git) sits under a detected cloud-sync substrate. - is_
onedrive_ placeholder - WIN-003: is this path a Cloud Filter / OneDrive on-demand placeholder?
- probe_
repo_ path - Combined honesty probe for a repo path (work tree or
.git). - refuse_
sync_ env_ requested - Env / config opt-in: refuse writers when
.gitis under a sync root.