MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / restrict_self

Method restrict_self

vmm/src/landlock.rs:116–121  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

114 }
115
116 pub fn restrict_self(self) -> Result<(), LandlockError> {
117 self.ruleset
118 .restrict_self()
119 .map_err(LandlockError::ManageRuleset)?;
120 Ok(())
121 }
122}
123
124#[test]

Callers 5

start_vmmFunction · 0.80
setup_signal_handlerMethod · 0.80
apply_landlockMethod · 0.80
start_http_threadFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected