//! External command allowlist.
//!
//! Only absolute executable paths listed in the allowlist configuration
//! are eligible for execution via control-plane extension points.
//! Default: empty list (deny all external commands).
use crateAllowlistConfig;
use crateDashboardError;
/// Checks whether an executable path is in the allowlist.
///
/// # Arguments
///
/// - `path`: Absolute executable path to check.
/// - `config`: Allowlist configuration.
///
/// # Returns
///
/// Returns `Ok(())` when the path is allowed, or `Err(DashboardError)`
/// with `allowlist_empty` or `allowlist_denied`.