devices
0.1.0
Module allowlist
Module Items
Structs
Enums
Functions
In devices::
virtio::
fs
devices
::
virtio
::
fs
Module
allowlist
Copy item path
Source
Structs
§
Path
Allowlist
A hierarchical path allowlist that restricts file system access using a prefix tree (Trie).
Trie
Node
🔒
Enums
§
Access
Level
Represents the access level for a path in the allowlist.
Read
DirFilter
Represents a pre-calculated filter for directory entry validation.
Functions
§
normalize_
lexically
🔒
Normalizes a path lexically by resolving
..
and
.
components. Returns
Some(PathBuf)
containing an absolute path starting with
/
, or
None
if the path is invalid (e.g., attempts to traverse above the root).