From bea57c02c4d77309bdd79dc59147324269cf7fb4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 6 May 2025 11:26:26 +1000 Subject: [PATCH] build(deps): bump libc from 0.2.171 to 0.2.172 in /rust (#9031) Bumps [libc](https://github.com/rust-lang/libc) from 0.2.171 to 0.2.172.
Release notes

Sourced from libc's releases.

0.2.172

Added

Deprecated

Fixed

Removed

... (truncated)

Changelog

Sourced from libc's changelog.

0.2.172 - 2025-04-14

Added

Deprecated

Fixed

... (truncated)

Commits

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=libc&package-manager=cargo&previous-version=0.2.171&new-version=0.2.172)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) ---
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
--------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Thomas Eizinger --- .github/actions/setup-rust/action.yml | 2 +- rust/Cargo.lock | 4 ++-- rust/Cargo.toml | 2 +- rust/connlib/clients/android/src/tun.rs | 3 +-- 4 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/actions/setup-rust/action.yml b/.github/actions/setup-rust/action.yml index 1c32214b2..0a4aa9546 100644 --- a/.github/actions/setup-rust/action.yml +++ b/.github/actions/setup-rust/action.yml @@ -18,7 +18,7 @@ outputs: description: Compilable packages for the current OS value: ${{ (runner.os == 'Linux' && '--workspace') || - (runner.os == 'macOS' && '--workspace --exclude ebpf-turn-router --exclude gui-smoke-test') || + (runner.os == 'macOS' && '--workspace --exclude ebpf-turn-router --exclude gui-smoke-test --exclude connlib-client-android') || (runner.os == 'Windows' && '--workspace --exclude ebpf-turn-router --exclude connlib-client-apple --exclude connlib-client-android') }} test-packages: description: Testable packages for the current OS diff --git a/rust/Cargo.lock b/rust/Cargo.lock index 83fe39633..e06de021c 100644 --- a/rust/Cargo.lock +++ b/rust/Cargo.lock @@ -3748,9 +3748,9 @@ dependencies = [ [[package]] name = "libc" -version = "0.2.171" +version = "0.2.172" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c19937216e9d3aa9956d9bb8dfc0b0c8beb6058fc4f7a4dc4d850edf86a237d6" +checksum = "d750af042f7ef4f724306de029d18836c26c1765a54a6a3f094cbd23a7267ffa" [[package]] name = "libdbus-sys" diff --git a/rust/Cargo.toml b/rust/Cargo.toml index 15b8e08ea..18bebed8a 100644 --- a/rust/Cargo.toml +++ b/rust/Cargo.toml @@ -99,7 +99,7 @@ known-folders = "1.2.0" l4-tcp-dns-server = { path = "connlib/l4-tcp-dns-server" } l4-udp-dns-server = { path = "connlib/l4-udp-dns-server" } bufferpool = { path = "bufferpool" } -libc = "0.2.171" +libc = "0.2.172" lockfree-object-pool = "0.1.6" log = "0.4" lru = "0.12.5" diff --git a/rust/connlib/clients/android/src/tun.rs b/rust/connlib/clients/android/src/tun.rs index 12f1ef10a..a17c409db 100644 --- a/rust/connlib/clients/android/src/tun.rs +++ b/rust/connlib/clients/android/src/tun.rs @@ -92,10 +92,9 @@ impl Tun { /// /// The file descriptor must be open. unsafe fn interface_name(fd: RawFd) -> io::Result { - const TUNGETIFF: libc::c_ulong = 0x800454d2; let mut request = tun::ioctl::Request::::new(); - unsafe { ioctl::exec(fd, TUNGETIFF, &mut request)? }; + unsafe { ioctl::exec(fd, libc::TUNGETIFF as libc::c_ulong, &mut request)? }; Ok(request.name().to_string()) }