Skip to content

Commit

Permalink
feat: add the IC OS Name Service Switch library to enable guestos and…
Browse files Browse the repository at this point in the history
… hostos host name resolution.
  • Loading branch information
DFINITYManu committed Jan 15, 2024
1 parent 83ccd95 commit 6f75846
Show file tree
Hide file tree
Showing 18 changed files with 934 additions and 13 deletions.
3 changes: 3 additions & 0 deletions .gitlab/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -63,6 +63,9 @@ go_deps.bzl @dfinity-lab/teams/idx
/ic-os/hostos/rootfs/etc/metrics-proxy.yaml @dfinity-lab/teams/DRE
/ic-os/hostos/rootfs/etc/systemd/system/metrics-proxy.service @dfinity-lab/teams/DRE

# [nss_icos]
/rs/ic_os/nss_icos/ @dfinity-lab/teams/DRE

# [GitLab-CI]
/.pre-commit-config.yaml @dfinity-lab/teams/idx
/pre-commit/ @dfinity-lab/teams/idx
Expand Down
238 changes: 237 additions & 1 deletion Cargo.Bazel.Fuzzing.json.lock
@@ -1,5 +1,5 @@
{
"checksum": "9401d7861bd9923ae8408d1c6a7880d69a44d14919a7ad10a877fb11b1ee01ae",
"checksum": "54ca1c27064cc161cf79cec75ae5c9f85fab3e57feb2c29ecc0d7ea618ab6ffd",
"crates": {
"abnf 0.12.0": {
"name": "abnf",
Expand Down Expand Up @@ -15351,6 +15351,10 @@
"id": "libfuzzer-sys 0.4.7",
"target": "libfuzzer_sys"
},
{
"id": "libnss 0.5.0",
"target": "libnss"
},
{
"id": "libsecp256k1 0.7.1",
"target": "libsecp256k1"
Expand All @@ -15363,6 +15367,10 @@
"id": "linked-hash-map 0.5.6",
"target": "linked_hash_map"
},
{
"id": "local-ip-address 0.5.6",
"target": "local_ip_address"
},
{
"id": "log 0.4.20",
"target": "log"
Expand Down Expand Up @@ -29776,6 +29784,58 @@
},
"license": "MIT OR Apache-2.0"
},
"libnss 0.5.0": {
"name": "libnss",
"version": "0.5.0",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/libnss/0.5.0/download",
"sha256": "41bcbddc10dc229d4119553cc8dc61968cdd134286a4669ba31184f8e9efa442"
}
},
"targets": [
{
"Library": {
"crate_name": "libnss",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "libnss",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "lazy_static 1.4.0",
"target": "lazy_static"
},
{
"id": "libc 0.2.149",
"target": "libc"
}
],
"selects": {}
},
"edition": "2018",
"proc_macro_deps": {
"common": [
{
"id": "paste 1.0.14",
"target": "paste"
}
],
"selects": {}
},
"version": "0.5.0"
},
"license": "LGPL-3.0"
},
"librocksdb-sys 0.11.0+8.1.1": {
"name": "librocksdb-sys",
"version": "0.11.0+8.1.1",
Expand Down Expand Up @@ -30789,6 +30849,64 @@
},
"license": "MIT OR Apache-2.0"
},
"local-ip-address 0.5.6": {
"name": "local-ip-address",
"version": "0.5.6",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/local-ip-address/0.5.6/download",
"sha256": "66357e687a569abca487dc399a9c9ac19beb3f13991ed49f00c144e02cbd42ab"
}
},
"targets": [
{
"Library": {
"crate_name": "local_ip_address",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "local_ip_address",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "thiserror 1.0.56",
"target": "thiserror"
}
],
"selects": {
"cfg(target_os = \"linux\")": [
{
"id": "neli 0.6.4",
"target": "neli"
}
],
"cfg(unix)": [
{
"id": "libc 0.2.149",
"target": "libc"
}
],
"cfg(windows)": [
{
"id": "windows-sys 0.48.0",
"target": "windows_sys"
}
]
}
},
"edition": "2021",
"version": "0.5.6"
},
"license": "MIT OR Apache-2.0"
},
"local-waker 0.1.3": {
"name": "local-waker",
"version": "0.1.3",
Expand Down Expand Up @@ -33225,6 +33343,123 @@
},
"license": "MIT/Apache-2.0"
},
"neli 0.6.4": {
"name": "neli",
"version": "0.6.4",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/neli/0.6.4/download",
"sha256": "1100229e06604150b3becd61a4965d5c70f3be1759544ea7274166f4be41ef43"
}
},
"targets": [
{
"Library": {
"crate_name": "neli",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "neli",
"common_attrs": {
"compile_data_glob": [
"**"
],
"crate_features": {
"common": [
"default"
],
"selects": {}
},
"deps": {
"common": [
{
"id": "byteorder 1.5.0",
"target": "byteorder"
},
{
"id": "libc 0.2.149",
"target": "libc"
},
{
"id": "log 0.4.20",
"target": "log"
}
],
"selects": {}
},
"edition": "2018",
"proc_macro_deps": {
"common": [
{
"id": "neli-proc-macros 0.1.3",
"target": "neli_proc_macros"
}
],
"selects": {}
},
"version": "0.6.4"
},
"license": "BSD-3-Clause"
},
"neli-proc-macros 0.1.3": {
"name": "neli-proc-macros",
"version": "0.1.3",
"repository": {
"Http": {
"url": "https://crates.io/api/v1/crates/neli-proc-macros/0.1.3/download",
"sha256": "c168194d373b1e134786274020dae7fc5513d565ea2ebb9bc9ff17ffb69106d4"
}
},
"targets": [
{
"ProcMacro": {
"crate_name": "neli_proc_macros",
"crate_root": "src/lib.rs",
"srcs": [
"**/*.rs"
]
}
}
],
"library_target_name": "neli_proc_macros",
"common_attrs": {
"compile_data_glob": [
"**"
],
"deps": {
"common": [
{
"id": "either 1.9.0",
"target": "either"
},
{
"id": "proc-macro2 1.0.76",
"target": "proc_macro2"
},
{
"id": "quote 1.0.35",
"target": "quote"
},
{
"id": "serde 1.0.195",
"target": "serde"
},
{
"id": "syn 1.0.109",
"target": "syn"
}
],
"selects": {}
},
"edition": "2018",
"version": "0.1.3"
},
"license": "BSD-3-Clause"
},
"net2 0.2.39": {
"name": "net2",
"version": "0.2.39",
Expand Down Expand Up @@ -61483,6 +61718,7 @@
"Win32_Globalization",
"Win32_NetworkManagement",
"Win32_NetworkManagement_IpHelper",
"Win32_NetworkManagement_Ndis",
"Win32_Networking",
"Win32_Networking_WinSock",
"Win32_Security",
Expand Down
50 changes: 50 additions & 0 deletions Cargo.Bazel.Fuzzing.toml.lock
Expand Up @@ -3042,9 +3042,11 @@ dependencies = [
"libc",
"libflate",
"libfuzzer-sys",
"libnss",
"libsecp256k1",
"libusb",
"linked-hash-map",
"local-ip-address",
"log",
"lru",
"maplit",
Expand Down Expand Up @@ -5929,6 +5931,17 @@ version = "0.2.8"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4ec2a862134d2a7d32d7983ddcdd1c4923530833c9f2ea1a44fc5fa473989058"

[[package]]
name = "libnss"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "41bcbddc10dc229d4119553cc8dc61968cdd134286a4669ba31184f8e9efa442"
dependencies = [
"lazy_static",
"libc",
"paste 1.0.14",
]

[[package]]
name = "librocksdb-sys"
version = "0.11.0+8.1.1"
Expand Down Expand Up @@ -6084,6 +6097,18 @@ dependencies = [
"local-waker",
]

[[package]]
name = "local-ip-address"
version = "0.5.6"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "66357e687a569abca487dc399a9c9ac19beb3f13991ed49f00c144e02cbd42ab"
dependencies = [
"libc",
"neli",
"thiserror",
"windows-sys 0.48.0",
]

[[package]]
name = "local-waker"
version = "0.1.3"
Expand Down Expand Up @@ -6543,6 +6568,31 @@ version = "0.8.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "e5ce46fe64a9d73be07dcbe690a38ce1b293be448fd8ce1e6c1b8062c9f72c6a"

[[package]]
name = "neli"
version = "0.6.4"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "1100229e06604150b3becd61a4965d5c70f3be1759544ea7274166f4be41ef43"
dependencies = [
"byteorder",
"libc",
"log",
"neli-proc-macros",
]

[[package]]
name = "neli-proc-macros"
version = "0.1.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c168194d373b1e134786274020dae7fc5513d565ea2ebb9bc9ff17ffb69106d4"
dependencies = [
"either",
"proc-macro2 1.0.76",
"quote 1.0.35",
"serde",
"syn 1.0.109",
]

[[package]]
name = "net2"
version = "0.2.39"
Expand Down

0 comments on commit 6f75846

Please sign in to comment.