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 53e346e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 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
2 changes: 1 addition & 1 deletion src/linux/namespaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 53e346e

Please sign in to comment.