From ad4f7b86f28052f4a12f351528768f776d91ef98 Mon Sep 17 00:00:00 2001 From: Julio Montes Date: Mon, 26 Oct 2020 15:09:42 -0600 Subject: [PATCH] agent/rustjail: make mount and umount2 public make mount and umount2 public, this way they can be used in other files Signed-off-by: Julio Montes --- src/agent/rustjail/src/mount.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/agent/rustjail/src/mount.rs b/src/agent/rustjail/src/mount.rs index dc948a3f8..85b695252 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> {