diff --git a/src/agent/rustjail/src/mount.rs b/src/agent/rustjail/src/mount.rs index dc948a3f88..85b6952521 100644 --- a/src/agent/rustjail/src/mount.rs +++ b/src/agent/rustjail/src/mount.rs @@ -112,7 +112,12 @@ lazy_static! { #[inline(always)] #[allow(unused_variables)] -fn mount( +pub fn mount< + P1: ?Sized + NixPath, + P2: ?Sized + NixPath, + P3: ?Sized + NixPath, + P4: ?Sized + NixPath, +>( source: Option<&P1>, target: &P2, fstype: Option<&P3>, @@ -127,7 +132,7 @@ fn mount( +pub fn umount2( target: &P, flags: MntFlags, ) -> std::result::Result<(), nix::Error> {