Skip to content

Commit

Permalink
Fix oldstable build v2
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Nov 28, 2023
1 parent e1f5143 commit dc372b6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
4 changes: 0 additions & 4 deletions src/linux/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,10 +77,6 @@ impl Sandbox for LinuxSandbox {
sandboxee.pre_exec(move || post_fork(uid, gid, self.allow_networking)).spawn()?
};

// TODO
// Drop root user mapping for the parent process.
// namespaces::create_user_namespace(uid, gid, Namespaces::empty()).unwrap();

Ok(child)
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/linux/namespaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const NEW_ROOT: &str = "/tmp/birdcage-root";
///
/// This will deny access to any path which isn't part of `bind_mounts`. Allowed
/// paths are mounted according to their bind mount flags.
pub fn setup_mount_namespace(exceptions: PathExceptions) -> io::Result<()> {
pub(crate) fn setup_mount_namespace(exceptions: PathExceptions) -> io::Result<()> {
// Get target paths for new and old root.
let new_root = PathBuf::from(NEW_ROOT);

Expand Down

0 comments on commit dc372b6

Please sign in to comment.