Skip to main content

PRIVATE_DIR_MODE

Constant PRIVATE_DIR_MODE 

Source
pub const PRIVATE_DIR_MODE: u32 = 0o700;
Expand description

The Unix mode private state is held at: owner-only, no group, no other.

Why: 0700 is the same bar ~/.ssh sets, and the state here (transcripts, daemon tokens’ neighbours, logs) is comparably sensitive. What: 0o700. Test: paths::private_state_tests::ensure_tightens_a_permissive_existing_dir.