MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / parse_process_policy

Function parse_process_policy

crates/openshell-supervisor-network/src/opa.rs:715–720  ·  view source on GitHub ↗
(val: &regorus::Value)

Source from the content-addressed store, hash-verified

713}
714
715fn parse_process_policy(val: &regorus::Value) -> ProcessPolicy {
716 ProcessPolicy {
717 run_as_user: get_str(val, "run_as_user"),
718 run_as_group: get_str(val, "run_as_group"),
719 }
720}
721
722/// Preprocess YAML policy data: parse, normalize, validate, expand access presets, return JSON.
723fn preprocess_yaml_data(yaml_str: &str) -> Result<String> {

Callers 1

query_sandbox_configMethod · 0.85

Calls 1

get_strFunction · 0.85

Tested by

no test coverage detected