Skip to main content

Module fs_perm

Module fs_perm 

Source
Expand description

Unix secret file/dir permission helpers (G-AUD-24). Unix secret file/dir modes — single source (G-AUD-24 / no hardcode drift).

Functions§

secret_dir_mode
Compile-time alias for call sites that need the raw secret-dir mode integer.
secret_file_mode
Compile-time alias for call sites that need the raw secret-file mode integer.
set_secret_dir_mode
Sets secret-dir mode (0o700) on Unix; no-op on other targets.
set_secret_file_mode
Sets secret-file mode (0o600) on Unix; no-op on other targets.