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

Method apply_landlock

vmm/src/vm_config.rs:187–192  ·  view source on GitHub ↗
(&self, landlock: &mut Landlock)

Source from the content-addressed store, hash-verified

185
186impl ApplyLandlock for MemoryZoneConfig {
187 fn apply_landlock(&self, landlock: &mut Landlock) -> LandlockResult<()> {
188 if let Some(file) = &self.file {
189 landlock.add_rule_with_access(file, "rw")?;
190 }
191 Ok(())
192 }
193}
194
195#[derive(Clone, Copy, Debug, PartialEq, Eq, Deserialize, Serialize, Default)]

Callers 1

apply_landlockFunction · 0.80

Calls 6

newFunction · 0.85
add_rule_with_accessMethod · 0.80
iterMethod · 0.80
restrict_selfMethod · 0.80
pushMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected