Skip to content

Commit

Permalink
Merge pull request #1561 from Jakob-Naucke/s390x-statfs-constants
Browse files Browse the repository at this point in the history
agent: s390x statfs constants
  • Loading branch information
GabyCT committed Apr 6, 2021
2 parents 201ad24 + 52a276f commit aac852a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 56 deletions.
63 changes: 10 additions & 53 deletions src/agent/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/agent/Cargo.toml
Expand Up @@ -45,7 +45,7 @@ tempfile = "3.1.0"
prometheus = { version = "0.9.0", features = ["process"] }
procfs = "0.7.9"
anyhow = "1.0.32"
cgroups = { package = "cgroups-rs", version = "0.2.2" }
cgroups = { package = "cgroups-rs", version = "0.2.5" }

[workspace]
members = [
Expand Down
2 changes: 1 addition & 1 deletion src/agent/rustjail/Cargo.toml
Expand Up @@ -23,7 +23,7 @@ scan_fmt = "0.2"
regex = "1.1"
path-absolutize = "1.2.0"
anyhow = "1.0.32"
cgroups = { package = "cgroups-rs", version = "0.2.1" }
cgroups = { package = "cgroups-rs", version = "0.2.5" }
tempfile = "3.1.0"
rlimit = "0.5.3"

Expand Down
4 changes: 3 additions & 1 deletion src/agent/rustjail/src/mount.rs
Expand Up @@ -52,10 +52,12 @@ const MOUNTINFOFORMAT: &str = "{d} {d} {d}:{d} {} {} {} {}";
const PROC_PATH: &str = "/proc";

// since libc didn't defined this const for musl, thus redefined it here.
#[cfg(all(target_os = "linux", target_env = "gnu"))]
#[cfg(all(target_os = "linux", target_env = "gnu", not(target_arch = "s390x")))]
const PROC_SUPER_MAGIC: libc::c_long = 0x00009fa0;
#[cfg(all(target_os = "linux", target_env = "musl"))]
const PROC_SUPER_MAGIC: libc::c_ulong = 0x00009fa0;
#[cfg(all(target_os = "linux", target_env = "gnu", target_arch = "s390x"))]
const PROC_SUPER_MAGIC: libc::c_uint = 0x00009fa0;

lazy_static! {
static ref PROPAGATION: HashMap<&'static str, MsFlags> = {
Expand Down

0 comments on commit aac852a

Please sign in to comment.