adds a windows-specific method to check if a command is safe (#4119)

refactors command_safety files into its own package, so we can add
platform-specific ones
Also creates a windows-specific of `is_known_safe_command` that just
returns false always, since that is what happens today.
This commit is contained in:
iceweasel-oai
2025-09-24 14:03:43 -07:00
committed by GitHub
parent 42847baaf7
commit 0e58870634
4 changed files with 38 additions and 2 deletions

View File

@@ -0,0 +1,3 @@
pub mod is_safe_command;
#[cfg(target_os = "windows")]
pub mod windows_safe_commands;