[−][src]Function jail::param::set
pub fn set(jid: i32, name: &str, value: Value) -> Result<(), JailError>
Set a jail parameter given the jid, the parameter name and the value.
Examples
use jail::param; param::set(jid, "allow.raw_sockets", param::Value::Int(1)) .expect("could not set parameter");
Tunable parameters cannot be set:
use jail::{param, JailError}; param::set( jid, "osrelease", param::Value::String("CantTouchThis".into())) .expect_err("Setting a tunable parameter on a running jail succeeded");