vmm: Limit the visibility of Landlock objects

Limit the visibility of objects and methods introduced by Landlock
implementation.

Signed-off-by: Praveen K Paladugu <prapal@linux.microsoft.com>
This commit is contained in:
Praveen K Paladugu
2024-06-26 15:22:12 +00:00
committed by Liu Wei
parent 457fd9ef96
commit 7f6731cd05
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -802,7 +802,7 @@ pub struct VmConfig {
}
impl VmConfig {
pub fn apply_landlock(&self) -> LandlockResult<()> {
pub(crate) fn apply_landlock(&self) -> LandlockResult<()> {
let mut landlock = Landlock::new()?;
if let Some(mem_zones) = &self.memory.zones {