Skip to main content

Crate arks_hostfs

Crate arks_hostfs 

Source
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§

CloudDetection
Detection result — always advisory unless a future SoT Claimed slice says otherwise.
ProbeReport

Enums§

CloudKind
Kind of cloud / sync substrate detected under a path.
HostFsError
LsmKind
Host LSM / MAC policy substrate (FS-014) — detect only.

Functions§

detect_cloud_sync
Probe whether path lives 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 .git is under a sync root.