Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
07ec048
Sort, reorder and color build summary output (#6649)
neha170 Feb 2, 2024
4e42232
[AUTOPATCHER-CORE] Upgrade tzdata to 2024a upgrade to version 2024a (…
CBL-Mariner-Bot Feb 2, 2024
9a4ea2e
Update sos to 4.6.1 (#7553)
aadhar-agarwal Feb 5, 2024
bb769f7
[AUTO-CHERRYPICK] lz4: Upgrade to 1.9.4-1 to fix CVE-2021-3520 - bran…
CBL-Mariner-Bot Feb 6, 2024
498a01c
msft-golang: upgrade version 1.20.11 -> 1.21.6 (#7569)
mfrw Feb 6, 2024
b600bbc
Add package nss-mdns v0.15.1 (#7407)
adobrzhansky Feb 6, 2024
87dd34c
patch vendored go module quic-go for package coredns to address CVE-2…
mbykhovtsev-ms Feb 6, 2024
75a70a5
Removed extra double quote in the toolkit. (#7736)
PawelWMS Feb 7, 2024
07bfaa1
sriov-network-device-plugin: upgrade from 3.5.1 -> 3.6.2 (#7463)
sudmis Feb 7, 2024
d3439c7
Fix missing nobody user/group for nfs squash (#6652)
AZaugg Feb 7, 2024
de5c331
kernel-uvm-cvm: remove spec and references (#7716)
arc9693 Feb 7, 2024
6402b54
Add cleanup script to base images (#7687)
romoh Feb 7, 2024
d5b9572
Revert "Shift user/group creation earlier in image build for rootfs i…
ellie-di Feb 7, 2024
046b27b
Fix pytest version for python-virtualenv (#7752)
corvus-callidus Feb 7, 2024
176cf2b
[AUTO-CHERRYPICK] fix cve-2022-21698 in moby-cli - branch main (#7697)
CBL-Mariner-Bot Feb 7, 2024
d984b2f
[AUTO-CHERRYPICK] fix cve-2022-21698 in moby-engine - branch main (#7…
CBL-Mariner-Bot Feb 7, 2024
bf37045
[AUTO-CHERRYPICK] fix cve-2022-21698 in rook - branch main (#7765)
CBL-Mariner-Bot Feb 8, 2024
deea342
[AUTO-CHERRYPICK] fix cve-2022-21698 in prometheus-node-exporter - br…
CBL-Mariner-Bot Feb 8, 2024
f17fb7b
[AUTO-CHERRYPICK] fix cve-2022-21698 in prometheus-process-exporter -…
CBL-Mariner-Bot Feb 8, 2024
5b876f7
[CHERRYPICK FROM FASTTRACK/2.0] fix cve-2022-21698 in node-problem-de…
tobiasb-ms Feb 8, 2024
d0e2fb1
[CHERRYPICK FROM FASTTRACK/2.0] fix cve-2022-21698 in nmi (#7681) (#7…
tobiasb-ms Feb 8, 2024
5433c58
Allow dracut info logs to be visible for baremetal base image (#7788)
romoh Feb 8, 2024
f4ecbfe
[AUTOPATCHER-kernel] Kernel and kernel-mos upgrade to version 5.15.14…
CBL-Mariner-Bot Feb 9, 2024
238a103
Cherry-picked fast-track fix for 'local-path-provisioner' (#7725). (#…
PawelWMS Feb 9, 2024
589ef81
Cherry-picked fast-track fix for 'kube-vip-cloud-provider' (#7698). (…
PawelWMS Feb 9, 2024
aaac8a4
[AUTO-CHERRYPICK] Patch CVE-2023-44487 in vendored golang - branch ma…
CBL-Mariner-Bot Feb 9, 2024
743f60e
[AUTO-CHERRYPICK] Patch `CVE-2021-44716` in `libcontainers-common` - …
CBL-Mariner-Bot Feb 9, 2024
629ddaf
[AUTO-CHERRYPICK] Patch `flannel` to resolve `CVE-2021-44716` - branc…
CBL-Mariner-Bot Feb 9, 2024
fd5e30e
Fix CVE-2021-44716 (CP #7717). (#7815)
PawelWMS Feb 9, 2024
1add496
Add upstream patch to kubevirt to force hp-volume- pod to respect blo…
sharath-srikanth-chellappa Feb 9, 2024
bd9a5c7
Upgraded `golang` version 1.20.10 -> 1.21.6 (#7640)
mfrw Feb 9, 2024
20f96bc
Fixed merge leftovers in a `coredns` patch. (#7823)
PawelWMS Feb 11, 2024
d1415bc
snap for release 02/11/2023
CBL-Mariner-Bot Feb 12, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
/SPECS/kernel-headers/* @microsoft/cbl-mariner-kernel
/SPECS/kernel-mshv/* @microsoft/cbl-mariner-kata-containers
/SPECS/kernel-uvm/* @microsoft/cbl-mariner-kata-containers
/SPECS/kernel-uvm-cvm/* @microsoft/cbl-mariner-kata-containers
/SPECS-SIGNED/kernel-signed/* @microsoft/cbl-mariner-kernel
/SPECS-SIGNED/kernel-hci-signed/* @microsoft/cbl-mariner-kernel
/SPECS-SIGNED/kernel-azure-signed/* @microsoft/cbl-mariner-kernel
Expand Down
5 changes: 4 additions & 1 deletion SPECS-EXTENDED/buildah/buildah.spec
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Summary: A command line tool used for creating OCI Images
Name: buildah
Version: 1.18.0
Release: 21%{?dist}
Release: 22%{?dist}
License: ASL 2.0
Vendor: Microsoft Corporation
Distribution: Mariner
Expand Down Expand Up @@ -123,6 +123,9 @@ cp imgtype %{buildroot}/%{_bindir}/%{name}-imgtype
%{_datadir}/%{name}/test

%changelog
* Fri Feb 02 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.18.0-22
- Bump release to rebuild with go 1.21.6

* Wed Oct 18 2023 Minghe Ren <mingheren@microsoft.com> - 1.18.0-21
- Bump release to rebuild against glibc 2.35-6

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

Name: %{project}-%{repo}
Version: 1.1.1
Release: 13%{?dist}
Release: 14%{?dist}
Summary: Libraries for writing CNI plugin
License: ASL 2.0 and BSD and MIT
Vendor: Microsoft Corporation
Expand Down Expand Up @@ -129,6 +129,9 @@ install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir}
%{_unitdir}/cni-dhcp.socket

%changelog
* Fri Feb 02 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.1.1-14
- Bump release to rebuild with go 1.21.6

* Mon Oct 16 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.1.1-13
- Bump release to rebuild with go 1.20.9

Expand Down
5 changes: 4 additions & 1 deletion SPECS-EXTENDED/delve/delve.spec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Vendor: Microsoft Corporation
Distribution: Mariner
Name: delve
Version: 1.5.0
Release: 16%{?dist}
Release: 17%{?dist}
Summary: A debugger for the Go programming language

License: MIT
Expand Down Expand Up @@ -72,6 +72,9 @@ done


%changelog
* Fri Feb 02 2024 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.5.0-17
- Bump release to rebuild with go 1.21.6

* Mon Oct 16 2023 CBL-Mariner Servicing Account <cblmargh@microsoft.com> - 1.5.0-16
- Bump release to rebuild with go 1.20.9

Expand Down
112 changes: 112 additions & 0 deletions SPECS-EXTENDED/nss-mdns/nss-mdns-local-heuristic-unit.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
From 6ff47454ff413e3033a77d4d9c09b914c78ab3a0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
Date: Wed, 7 Dec 2022 22:56:47 +0100
Subject: [PATCH] Add unit test parts for new autodetection

Use new enum to specify forced present or missing .local SOA record. Use
from production code auto value, but use forced values from unit test.
Add few different results to unit test.
---
src/nss.c | 3 ++-
src/util.c | 7 +++++--
src/util.h | 9 ++++++++-
tests/check_util.c | 18 ++++++++++++++++++
4 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/src/nss.c b/src/nss.c
index 7f9230e..2e1a90b 100644
--- a/src/nss.c
+++ b/src/nss.c
@@ -118,7 +118,8 @@ enum nss_status _nss_mdns_gethostbyname_impl(const char* name, int af,
#ifndef MDNS_MINIMAL
mdns_allow_file = fopen(MDNS_ALLOW_FILE, "r");
#endif
- result = verify_name_allowed_with_soa(name, mdns_allow_file);
+ result = verify_name_allowed_with_soa(name, mdns_allow_file,
+ TEST_LOCAL_SOA_AUTO);
#ifndef MDNS_MINIMAL
if (mdns_allow_file)
fclose(mdns_allow_file);
diff --git a/src/util.c b/src/util.c
index 4eacf07..0a1c28a 100644
--- a/src/util.c
+++ b/src/util.c
@@ -55,14 +55,17 @@ int ends_with(const char* name, const char* suffix) {
return strcasecmp(name + ln - ls, suffix) == 0;
}

-use_name_result_t verify_name_allowed_with_soa(const char* name, FILE* mdns_allow_file) {
+use_name_result_t verify_name_allowed_with_soa(const char* name,
+ FILE* mdns_allow_file,
+ test_local_soa_t test) {
switch (verify_name_allowed(name, mdns_allow_file)) {
case VERIFY_NAME_RESULT_NOT_ALLOWED:
return USE_NAME_RESULT_SKIP;
case VERIFY_NAME_RESULT_ALLOWED:
return USE_NAME_RESULT_AUTHORITATIVE;
case VERIFY_NAME_RESULT_ALLOWED_IF_NO_LOCAL_SOA:
- if (local_soa())
+ if (test == TEST_LOCAL_SOA_YES ||
+ (test == TEST_LOCAL_SOA_AUTO && local_soa()) )
/* Make multicast resolution not authoritative for .local zone.
* Allow continuing to unicast resolution after multicast had not worked. */
return USE_NAME_RESULT_OPTIONAL;
diff --git a/src/util.h b/src/util.h
index 76809d4..80527e3 100644
--- a/src/util.h
+++ b/src/util.h
@@ -67,6 +67,12 @@ typedef enum {
USE_NAME_RESULT_OPTIONAL,
} use_name_result_t;

+typedef enum {
+ TEST_LOCAL_SOA_NO,
+ TEST_LOCAL_SOA_YES,
+ TEST_LOCAL_SOA_AUTO,
+} test_local_soa_t;
+
// Returns true if we should try to resolve the name with mDNS.
//
// If mdns_allow_file is NULL, then this implements the "local" SOA
@@ -78,7 +84,8 @@ typedef enum {
// The two heuristics described above are disabled if mdns_allow_file
// is not NULL.
use_name_result_t verify_name_allowed_with_soa(const char* name,
- FILE* mdns_allow_file);
+ FILE* mdns_allow_file,
+ test_local_soa_t test);

typedef enum {
VERIFY_NAME_RESULT_NOT_ALLOWED,
diff --git a/tests/check_util.c b/tests/check_util.c
index d600a2e..36f1008 100644
--- a/tests/check_util.c
+++ b/tests/check_util.c
@@ -50,6 +50,24 @@ START_TEST(test_verify_name_allowed_minimal) {
VERIFY_NAME_RESULT_NOT_ALLOWED);
ck_assert_int_eq(verify_name_allowed(".", NULL),
VERIFY_NAME_RESULT_NOT_ALLOWED);
+
+ ck_assert_int_eq(verify_name_allowed_with_soa(".", NULL, TEST_LOCAL_SOA_YES),
+ USE_NAME_RESULT_SKIP);
+ ck_assert_int_eq(verify_name_allowed_with_soa(".", NULL, TEST_LOCAL_SOA_NO),
+ USE_NAME_RESULT_SKIP);
+ ck_assert_int_eq(verify_name_allowed_with_soa(".", NULL, TEST_LOCAL_SOA_AUTO),
+ USE_NAME_RESULT_SKIP);
+ ck_assert_int_eq(verify_name_allowed_with_soa("example3.sub.local",
+ NULL, TEST_LOCAL_SOA_YES), USE_NAME_RESULT_SKIP);
+ ck_assert_int_eq(verify_name_allowed_with_soa("example4.sub.local",
+ NULL, TEST_LOCAL_SOA_NO), USE_NAME_RESULT_SKIP);
+ ck_assert_int_eq(verify_name_allowed_with_soa("example4.sub.local",
+ NULL, TEST_LOCAL_SOA_AUTO), USE_NAME_RESULT_SKIP);
+ ck_assert_int_eq(verify_name_allowed_with_soa("example1.local",
+ NULL, TEST_LOCAL_SOA_YES), USE_NAME_RESULT_OPTIONAL);
+ ck_assert_int_eq(verify_name_allowed_with_soa("example2.local",
+ NULL, TEST_LOCAL_SOA_NO), USE_NAME_RESULT_AUTHORITATIVE);
+ /* TEST_LOCAL_SOA_AUTO would test actual DNS on host, skip that. */
}
END_TEST

--
2.38.1

119 changes: 119 additions & 0 deletions SPECS-EXTENDED/nss-mdns/nss-mdns-local-heuristic.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
From 0cbe3ff2a64cdddbfb3884ccbe28be9f08077614 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20Men=C5=A1=C3=ADk?= <pemensik@redhat.com>
Date: Tue, 6 Dec 2022 20:39:27 +0100
Subject: [PATCH] Change .local domain heuristic

Previous way skipped all multicast queries when unicast DNS contains
local. SOA record. Change that behaviour and always request multicast
name. But if local SOA is present, then make missing multicast optional
and continue to DNS plugin. That would make names ending with .local to
take longer resolve on unicast DNS, but should still deliver the answer.
---
src/nss.c | 11 ++++++++---
src/util.c | 15 ++++++++++-----
src/util.h | 9 ++++++++-
3 files changed, 26 insertions(+), 9 deletions(-)

diff --git a/src/nss.c b/src/nss.c
index 93d140a..7f9230e 100644
--- a/src/nss.c
+++ b/src/nss.c
@@ -85,8 +85,8 @@ enum nss_status _nss_mdns_gethostbyname_impl(const char* name, int af,
userdata_t* u, int* errnop,
int* h_errnop) {

- int name_allowed;
FILE* mdns_allow_file = NULL;
+ use_name_result_t result;

#ifdef NSS_IPV4_ONLY
if (af == AF_UNSPEC) {
@@ -118,13 +118,13 @@ enum nss_status _nss_mdns_gethostbyname_impl(const char* name, int af,
#ifndef MDNS_MINIMAL
mdns_allow_file = fopen(MDNS_ALLOW_FILE, "r");
#endif
- name_allowed = verify_name_allowed_with_soa(name, mdns_allow_file);
+ result = verify_name_allowed_with_soa(name, mdns_allow_file);
#ifndef MDNS_MINIMAL
if (mdns_allow_file)
fclose(mdns_allow_file);
#endif

- if (!name_allowed) {
+ if (result == USE_NAME_RESULT_SKIP) {
*errnop = EINVAL;
*h_errnop = NO_RECOVERY;
return NSS_STATUS_UNAVAIL;
@@ -137,6 +137,11 @@ enum nss_status _nss_mdns_gethostbyname_impl(const char* name, int af,
case AVAHI_RESOLVE_RESULT_HOST_NOT_FOUND:
*errnop = ETIMEDOUT;
*h_errnop = HOST_NOT_FOUND;
+ if (result == USE_NAME_RESULT_OPTIONAL) {
+ /* continue to dns plugin if DNS .local zone is detected. */
+ *h_errnop = TRY_AGAIN;
+ return NSS_STATUS_UNAVAIL;
+ }
return NSS_STATUS_NOTFOUND;

case AVAHI_RESOLVE_RESULT_UNAVAIL:
diff --git a/src/util.c b/src/util.c
index d5e0290..4eacf07 100644
--- a/src/util.c
+++ b/src/util.c
@@ -55,16 +55,21 @@ int ends_with(const char* name, const char* suffix) {
return strcasecmp(name + ln - ls, suffix) == 0;
}

-int verify_name_allowed_with_soa(const char* name, FILE* mdns_allow_file) {
+use_name_result_t verify_name_allowed_with_soa(const char* name, FILE* mdns_allow_file) {
switch (verify_name_allowed(name, mdns_allow_file)) {
case VERIFY_NAME_RESULT_NOT_ALLOWED:
- return 0;
+ return USE_NAME_RESULT_SKIP;
case VERIFY_NAME_RESULT_ALLOWED:
- return 1;
+ return USE_NAME_RESULT_AUTHORITATIVE;
case VERIFY_NAME_RESULT_ALLOWED_IF_NO_LOCAL_SOA:
- return !local_soa();
+ if (local_soa())
+ /* Make multicast resolution not authoritative for .local zone.
+ * Allow continuing to unicast resolution after multicast had not worked. */
+ return USE_NAME_RESULT_OPTIONAL;
+ else
+ return USE_NAME_RESULT_AUTHORITATIVE;
default:
- return 0;
+ return USE_NAME_RESULT_SKIP;
}
}

diff --git a/src/util.h b/src/util.h
index 218c094..76809d4 100644
--- a/src/util.h
+++ b/src/util.h
@@ -61,6 +61,12 @@ char* buffer_strdup(buffer_t* buf, const char* str);
int set_cloexec(int fd);
int ends_with(const char* name, const char* suffix);

+typedef enum {
+ USE_NAME_RESULT_SKIP,
+ USE_NAME_RESULT_AUTHORITATIVE,
+ USE_NAME_RESULT_OPTIONAL,
+} use_name_result_t;
+
// Returns true if we should try to resolve the name with mDNS.
//
// If mdns_allow_file is NULL, then this implements the "local" SOA
@@ -71,7 +77,8 @@ int ends_with(const char* name, const char* suffix);
//
// The two heuristics described above are disabled if mdns_allow_file
// is not NULL.
-int verify_name_allowed_with_soa(const char* name, FILE* mdns_allow_file);
+use_name_result_t verify_name_allowed_with_soa(const char* name,
+ FILE* mdns_allow_file);

typedef enum {
VERIFY_NAME_RESULT_NOT_ALLOWED,
--
2.38.1

5 changes: 5 additions & 0 deletions SPECS-EXTENDED/nss-mdns/nss-mdns.signatures.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"Signatures": {
"nss-mdns-0.15.1.tar.gz": "ddf71453d7a7cdc5921fe53ef387b24fd0c3c49f4dcf94a2a437498596761a21"
}
}
Loading