pub async fn write_policy_file(
path: &Path,
content: impl AsRef<[u8]>,
) -> Result<(), PolicyError>Expand description
Write a policy file with restrictive permissions (0o640 on Unix).
Policy files contain authorization rules and should not be world-readable. Uses tokio::fs::write then sets permissions afterward. The policies directory itself should already be 0o750, limiting the window where the file is exposed.