Skip to content

Commit 5dd2ebf

Browse files
authored
Merge pull request #1788 from flatcar/buildbot/weekly-portage-stable-package-updates-2024-03-25
Weekly portage-stable package updates 2024-03-25
2 parents 405cff9 + c70df0d commit 5dd2ebf

File tree

430 files changed

+8934
-9448
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+8934
-9448
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- c-ares ([CVE-2024-25629](https://nvd.nist.gov/vuln/detail/CVE-2024-25629))
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
- acl ([2.3.2](https://lists.nongnu.org/archive/html/acl-devel/2024-01/msg00012.html))
2+
- attr ([2.5.2](https://lists.nongnu.org/archive/html/acl-devel/2024-01/msg00011.html))
3+
- c-ares ([1.27.0](https://github.com/c-ares/c-ares/releases/tag/cares-1_27_0) (includes [1.26.0](https://github.com/c-ares/c-ares/releases/tag/cares-1_26_0)))
4+
- ethtool ([6.7](https://git.kernel.org/pub/scm/network/ethtool/ethtool.git/tree/NEWS?h=v6.7))
5+
- inih ([58](https://github.com/benhoyt/inih/releases/tag/r58))
6+
- ipset ([7.21](https://git.netfilter.org/ipset/tree/ChangeLog?h=v7.21) (includes [7.20](https://git.netfilter.org/ipset/tree/ChangeLog?h=v7.20)))
7+
- iputils ([20240117](https://github.com/iputils/iputils/releases/tag/20240117) (includes [20231222](https://github.com/iputils/iputils/releases/tag/20231222))
8+
- libnvme ([1.8](https://github.com/linux-nvme/libnvme/releases/tag/v1.8))
9+
- libpng ([1.6.43](https://github.com/pnggroup/libpng/blob/v1.6.43/ANNOUNCE) (includes [1.6.42](https://github.com/pnggroup/libpng/blob/v1.6.42/ANNOUNCE) and [1.6.41](https://github.com/pnggroup/libpng/blob/v1.6.41/ANNOUNCE)))
10+
- nvme-cli ([2.8](https://github.com/linux-nvme/nvme-cli/releases/tag/v2.8))
11+
- selinux-refpolicy ([2.20240226](https://github.com/SELinuxProject/refpolicy/releases/tag/RELEASE_2_20240226))

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/0001-Flatcar-modifications.patch

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
From 5293e66fafd5f5cf2872abc03d8b49ed5bc81b9a Mon Sep 17 00:00:00 2001
1+
From f646fccd3b737a79ae0e0d0de049166e531fb48b Mon Sep 17 00:00:00 2001
22
From: Krzesimir Nowak <knowak@microsoft.com>
33
Date: Mon, 4 Dec 2023 12:17:25 +0100
44
Subject: [PATCH] Flatcar modifications
55

66
---
7-
policy/modules/admin/netutils.te | 20 ++++
7+
policy/modules/admin/netutils.te | 20 +++
88
policy/modules/kernel/corenetwork.if.in | 26 ++++
99
policy/modules/kernel/corenetwork.te.in | 12 +-
1010
policy/modules/kernel/files.if | 45 +++++++
11-
policy/modules/kernel/kernel.te | 73 ++++++++++++
11+
policy/modules/kernel/kernel.te | 84 +++++++++++++
1212
policy/modules/services/container.fc | 6 +
13-
policy/modules/services/container.te | 150 +++++++++++++++++++++++-
13+
policy/modules/services/container.te | 159 +++++++++++++++++++++++-
1414
policy/modules/system/init.te | 8 ++
1515
policy/modules/system/locallogin.te | 9 +-
1616
policy/modules/system/logging.te | 9 ++
17-
10 files changed, 355 insertions(+), 3 deletions(-)
17+
10 files changed, 375 insertions(+), 3 deletions(-)
1818

1919
diff --git a/refpolicy/policy/modules/admin/netutils.te b/refpolicy/policy/modules/admin/netutils.te
2020
index 3c43a1d84..429c67220 100644
@@ -115,10 +115,10 @@ index 53bf7849c..9edac05e8 100644
115115
# Infiniband
116116
corenet_ib_access_all_pkeys(corenet_unconfined_type)
117117
diff --git a/refpolicy/policy/modules/kernel/files.if b/refpolicy/policy/modules/kernel/files.if
118-
index 370ac0931..098d0cd6c 100644
118+
index e0337d044..ffd6a25bf 100644
119119
--- a/refpolicy/policy/modules/kernel/files.if
120120
+++ b/refpolicy/policy/modules/kernel/files.if
121-
@@ -7911,3 +7911,48 @@ interface(`files_relabel_all_pidfiles',`
121+
@@ -8004,3 +8004,48 @@ interface(`files_relabel_all_pidfiles',`
122122
relabel_files_pattern($1, pidfile, pidfile)
123123
relabel_lnk_files_pattern($1, pidfile, pidfile)
124124
')
@@ -168,10 +168,10 @@ index 370ac0931..098d0cd6c 100644
168168
+ relabelfrom_chr_files_pattern($1, { file_type -policy_config_t $2 }, { file_type -policy_config_t $2 })
169169
+')
170170
diff --git a/refpolicy/policy/modules/kernel/kernel.te b/refpolicy/policy/modules/kernel/kernel.te
171-
index 8156ac087..72a07e753 100644
171+
index a3dbeeeda..69d6bc9f0 100644
172172
--- a/refpolicy/policy/modules/kernel/kernel.te
173173
+++ b/refpolicy/policy/modules/kernel/kernel.te
174-
@@ -369,6 +369,79 @@ files_mounton_default(kernel_t)
174+
@@ -376,6 +376,90 @@ files_mounton_default(kernel_t)
175175

176176
mcs_process_set_categories(kernel_t)
177177

@@ -239,6 +239,17 @@ index 8156ac087..72a07e753 100644
239239
+#
240240
+# FLATCAR:
241241
+#
242+
+# This one happens in several places, like coreos.selinux.enforce,
243+
+# cl.network.initramfs.second-boot or coreos.ignition.once. Haven't
244+
+# pinpointed the cause yet:
245+
+#
246+
+# avc: denied { checkpoint_restore } for pid=[0-9]* comm="agetty" capability=40 scontext=system_u:system_r:kernel_t:s0 tcontext=system_u:system_r:kernel_t:s0 tclass=capability2 permissive=0
247+
+#
248+
+allow kernel_t self:capability2 { checkpoint_restore };
249+
+
250+
+#
251+
+# FLATCAR:
252+
+#
242253
+# This one happens a lot in kubeadm.v<VERSION>.<CNI>.cgroupv1.base and
243254
+# kubeadm.v<VERSION>.<CNI>.base for cilium and calico.
244255
+#
@@ -252,7 +263,7 @@ index 8156ac087..72a07e753 100644
252263
mls_process_write_all_levels(kernel_t)
253264
mls_file_write_all_levels(kernel_t)
254265
diff --git a/refpolicy/policy/modules/services/container.fc b/refpolicy/policy/modules/services/container.fc
255-
index 49e5d59bb..3769ad311 100644
266+
index f98e68ba0..045b1b5b2 100644
256267
--- a/refpolicy/policy/modules/services/container.fc
257268
+++ b/refpolicy/policy/modules/services/container.fc
258269
@@ -38,6 +38,12 @@ HOME_DIR/\.docker(/.*)? gen_context(system_u:object_r:container_conf_home_t,s0)
@@ -267,9 +278,9 @@ index 49e5d59bb..3769ad311 100644
267278
+/usr/share/containerd(/.*)? gen_context(system_u:object_r:container_config_t,s0)
268279

269280
/run/containers(/.*)? gen_context(system_u:object_r:container_runtime_t,s0)
270-
/run/libpod(/.*)? gen_context(system_u:object_r:container_runtime_t,s0)
281+
/run/crun(/.*)? gen_context(system_u:object_r:container_runtime_t,s0)
271282
diff --git a/refpolicy/policy/modules/services/container.te b/refpolicy/policy/modules/services/container.te
272-
index a5ad4686d..ceaeb2dfc 100644
283+
index 096d6c23d..4bbab3c69 100644
273284
--- a/refpolicy/policy/modules/services/container.te
274285
+++ b/refpolicy/policy/modules/services/container.te
275286
@@ -58,6 +58,52 @@ gen_tunable(container_use_dri, false)
@@ -334,7 +345,7 @@ index a5ad4686d..ceaeb2dfc 100644
334345

335346
## <desc>
336347
## <p>
337-
@@ -1088,3 +1134,105 @@ optional_policy(`
348+
@@ -1191,3 +1237,114 @@ optional_policy(`
338349
unconfined_domain_noaudit(spc_user_t)
339350
domain_ptrace_all_domains(spc_user_t)
340351
')
@@ -440,11 +451,20 @@ index a5ad4686d..ceaeb2dfc 100644
440451
+# avc: denied { map } for pid=[0-9]* comm="uds" path="/opt/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds/uds" dev="vda9" ino=[0-9]* scontext=system_u:system_r:container_t:s0:c[0-9]*,c[0-9]* tcontext=system_u:object_r:usr_t:s0 tclass=file permissive=0
441452
+#
442453
+allow container_t usr_t:file { execute execute_no_trans map };
454+
+
455+
+#
456+
+# FLATCAR:
457+
+#
458+
+# This one happens in kubeadm.v<VERSION>.cilium.base.
459+
+#
460+
+# avc: denied { map_create } for pid=[0-9]* comm="cilium-operator" scontext=system_u:system_r:container_t:s0:c[0-9]*,c[0-9]* tcontext=system_u:system_r:container_t:s0:c[0-9]*,c[0-9]* tclass=bpf permissive=0
461+
+#
462+
+allow container_t self:bpf { map_create };
443463
diff --git a/refpolicy/policy/modules/system/init.te b/refpolicy/policy/modules/system/init.te
444-
index c83d88b74..b55afabc0 100644
464+
index 8f3772dcb..435f62db6 100644
445465
--- a/refpolicy/policy/modules/system/init.te
446466
+++ b/refpolicy/policy/modules/system/init.te
447-
@@ -1658,3 +1658,11 @@ optional_policy(`
467+
@@ -1674,3 +1674,11 @@ optional_policy(`
448468
userdom_dontaudit_rw_all_users_stream_sockets(systemprocess)
449469
userdom_dontaudit_write_user_tmp_files(systemprocess)
450470
')

sdk_container/src/third_party/coreos-overlay/coreos/user-patches/sec-policy/flatcar-selinux-patches/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ The following steps were needed to make these patches:
77
- Apply the Gentoo patch:
88
- See the sec-policy/selinux-base ebuild in portage-stable for the
99
patch tarball URL.
10-
- Apply our changes.
10+
- Apply our changes:
11+
- `git am -p2 <OUR_PATCH>` should do the trick. Try adding `-3` flag
12+
in case of conflicts.
1113
- Generate the patch:
1214
- Since sec-policy/selinux- packages set their source directory to
1315
work directory (in Gentooese: `S=${WORKDIR}/`), the user patches

sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.accept_keywords

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,17 @@
5656

5757
# Needed to fix a build issue introduced by a wrong change in an older
5858
# version of the ebuild.
59-
=dev-libs/libdnet-1.16.4 ~amd64 ~arm64
59+
=dev-libs/libdnet-1.16.4 ~arm64
6060

6161
# Keep versions on both arches in sync.
6262
=dev-libs/libp11-0.4.12-r6 ~arm64
6363
=dev-libs/opensc-0.24.0 ~arm64
64-
=dev-util/bpftool-6.7.6-r1 ~arm64
6564
=dev-util/pahole-1.26 ~arm64
66-
=net-dns/dnsmasq-2.90 ~arm64
65+
66+
# Needed for addressing CVE-2024-25629
67+
=net-dns/c-ares-1.27.0 ~amd64 ~arm64
68+
69+
# Keep versions on both arches in sync.
6770
=net-firewall/conntrack-tools-1.4.6-r1 ~arm64
6871

6972
# Required for addressing CVE-2023-0361, CVE-2023-5981, CVE-2024-0567
@@ -74,17 +77,12 @@
7477
=net-libs/libnetfilter_cthelper-1.0.1-r1 ~arm64
7578
=net-libs/libnetfilter_cttimeout-1.0.1 ~arm64
7679

77-
# Needed for addressing CVE-2023-46218, CVE-2023-46219 and CVE-2024-0853
78-
=net-misc/curl-8.6.0-r1 ~arm64
79-
8080
# Required to allow us to override the sftp subsystem in sshd config.
8181
=net-misc/openssh-9.4_p1 ~amd64 ~arm64
8282

83-
# Needed for addressing CVE-2024-0684.
84-
=sys-apps/coreutils-9.4-r1 ~amd64 ~arm64
85-
8683
# Keep versions on both arches in sync.
8784
=sys-apps/kexec-tools-2.0.24 ~arm64
85+
=sys-apps/nvme-cli-2.8 ~arm64
8886

8987
sys-apps/zram-generator ~amd64 ~arm64
9088

@@ -97,6 +95,9 @@ sys-apps/zram-generator ~amd64 ~arm64
9795
# Needed to fix CVE-2023-29491.
9896
=sys-libs/ncurses-6.4_p20230527 ~amd64 ~arm64
9997

98+
# Keep versions on both arches in sync.
99+
=sys-libs/libnvme-1.8 ~arm64
100+
100101
# A dependency of app-shells/bash version that we need for security
101102
# fixes.
102103
=sys-libs/readline-8.2_p10 ~amd64 ~arm64

sdk_container/src/third_party/coreos-overlay/profiles/coreos/base/package.mask

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,3 +20,6 @@
2020
# Python 3.12 is in portage-stable (currently testing), so avoid picking it
2121
# up. Update this to mask later versions when we switch to 3.11.
2222
>=dev-lang/python-3.12
23+
24+
# Potentially compromised versions.
25+
>=app-arch/xz-utils-5.4.3
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
11
# Allow smartcard support in the SDK for image signing
22
app-crypt/gnupg -smartcard
3-
4-
# Do not pull unnecessary installkernel stuff
5-
sys-apps/debianutils installkernel

sdk_container/src/third_party/portage-stable/acct-group/adm/adm-0-r2.ebuild renamed to sdk_container/src/third_party/portage-stable/acct-group/adm/adm-0-r3.ebuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Copyright 2019-2023 Gentoo Authors
1+
# Copyright 2019-2024 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
4+
EAPI=8
55

66
inherit acct-group
77

sdk_container/src/third_party/portage-stable/acct-group/audio/audio-0-r2.ebuild renamed to sdk_container/src/third_party/portage-stable/acct-group/audio/audio-0-r3.ebuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Copyright 2019-2023 Gentoo Authors
1+
# Copyright 2019-2024 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
4+
EAPI=8
55

66
inherit acct-group
77

sdk_container/src/third_party/portage-stable/acct-group/cdrom/cdrom-0-r2.ebuild renamed to sdk_container/src/third_party/portage-stable/acct-group/cdrom/cdrom-0-r3.ebuild

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Copyright 2019-2023 Gentoo Authors
1+
# Copyright 2019-2024 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

4-
EAPI=7
4+
EAPI=8
55

66
inherit acct-group
77

0 commit comments

Comments
 (0)