⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

add_rule

Function add_rule 

Source
pub fn add_rule(
    source: &'static str,
    target: &'static str,
    allowed: u8,
) -> Result<(), KernelError>
Expand description

Add a legacy policy rule (backward compatible with old PolicyRule::new).

Wraps the old bitmask-based API into the new structured format.