Skip to content

Commit

Permalink
Fix weird Linux build error
Browse files Browse the repository at this point in the history
  • Loading branch information
cd-work committed Oct 30, 2023
1 parent 4efaab9 commit baffbe6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed

- (Linux) Sandbox exceptions for symbolic links
- (Linux) Symlink/Canonical path's exceptions overriding each other

## [v0.5.0] - 2023-10-13

Expand Down
5 changes: 0 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ name = "fs_readonly"
path = "tests/fs_readonly.rs"
harness = false

[[test]]
name = "fs_restrict_child"
path = "tests/fs_restrict_child.rs"
harness = false

[[test]]
name = "fs_write_also_read"
path = "tests/fs_write_also_read.rs"
Expand Down
4 changes: 2 additions & 2 deletions src/linux/namespaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use std::fs::{self, File};
use std::io::Error as IoError;
use std::os::unix::ffi::OsStrExt;
use std::os::unix::fs as unixfs;
use std::path::{Path, PathBuf, Component};
use std::path::{Component, Path, PathBuf};
use std::{env, mem, ptr};

use bitflags::bitflags;
Expand All @@ -23,7 +23,7 @@ const NEW_ROOT: &str = "/tmp/birdcage-root";
///
/// Additionally it will isolate network access if `allow_networking` is
/// `false`.
pub fn create_namespaces(allow_networking: bool, exceptions: PathExceptions) -> Result<()> {
pub(crate) fn create_namespaces(allow_networking: bool, exceptions: PathExceptions) -> Result<()> {
// Get EUID/EGID outside of the namespace.
let uid = unsafe { libc::geteuid() };
let gid = unsafe { libc::getegid() };
Expand Down

0 comments on commit baffbe6

Please sign in to comment.