Skip to content

Commit d2514c2

Browse files
authored
Merge pull request #2501 from flatcar/krnowak/move-sssd
Update SSSD, move to portage-stable
2 parents 653fd94 + 9cf97a6 commit d2514c2

Some content is hidden

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

46 files changed

+1171
-1128
lines changed

.github/workflows/portage-stable-packages-list

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ dev-libs/libltdl
252252
dev-libs/libmspack
253253
dev-libs/libnl
254254
dev-libs/libp11
255-
dev-libs/libpcre
256255
dev-libs/libpcre2
257256
dev-libs/libpipeline
258257
dev-libs/libpwquality
@@ -502,6 +501,7 @@ net-dialup/lrzsz
502501
net-dialup/minicom
503502

504503
net-dns/bind
504+
net-dns/bind-tools
505505
net-dns/c-ares
506506
net-dns/dnsmasq
507507
net-dns/libidn2
@@ -512,7 +512,6 @@ net-firewall/ipset
512512
net-fs/cifs-utils
513513

514514
net-libs/gnutls
515-
net-libs/http-parser
516515
net-libs/libmicrohttpd
517516
net-libs/libmnl
518517
net-libs/libnetfilter_conntrack
@@ -614,6 +613,8 @@ sys-apps/util-linux
614613
sys-apps/which
615614
sys-apps/zram-generator
616615

616+
sys-auth/sssd
617+
617618
sys-block/open-iscsi
618619
sys-block/open-isns
619620
sys-block/parted
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- sssd ([CVE-2023-3758](https://nvd.nist.gov/vuln/detail/CVE-2023-3758))
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- sssd ([2.9.5](https://sssd.io/release-notes/sssd-2.9.5.html) (includes [2.9.4](https://sssd.io/release-notes/sssd-2.9.4.html), [2.9.3](https://sssd.io/release-notes/sssd-2.9.3.html), [2.9.2](https://sssd.io/release-notes/sssd-2.9.2.html), [2.9.1](https://sssd.io/release-notes/sssd-2.9.1.html), [2.9.0](https://sssd.io/release-notes/sssd-2.9.0.html), [2.8.0](https://sssd.io/release-notes/sssd-2.8.0.html), [2.7.0](https://sssd.io/release-notes/sssd-2.7.0.html), [2.6.0](https://sssd.io/release-notes/sssd-2.6.0.html), [2.5.0](https://sssd.io/release-notes/sssd-2.5.0.html), [2.4.0](https://sssd.io/release-notes/sssd-2.4.0.html))
Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,15 @@
1-
export ac_cv_member_struct_ldap_conncb_lc_arg=no
1+
# `--enable-sss-default-nss-plugin` enables nss lookup with sss
2+
# plugin, even if sssd is not running.
3+
export EXTRA_ECONF="--enable-sss-default-nss-plugin"
4+
5+
# We haven't switched to having pam config in /etc, so move the files
6+
# to /usr.
7+
cros_post_src_install_move_pamd() {
8+
mkdir -p "${ED}/usr/share/"
9+
mv "${ED}/etc/pam.d" "${ED}/usr/share/pam.d"
10+
}
11+
12+
# This is to make sure that some sssd config is always in place.
13+
cros_post_src_set_initial_config() {
14+
cp -a "${ED}"/etc/sssd/sssd{-example,}.conf
15+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
From a559550c8e2d162735ff8a43de6dc59af71cf3df Mon Sep 17 00:00:00 2001
2+
From: Krzesimir Nowak <[email protected]>
3+
Date: Tue, 3 Dec 2024 19:05:44 +0100
4+
Subject: [PATCH] Assume that callbacks are not broken in OpenLDAP when
5+
cross-compiling
6+
7+
If we do cross-compiling against a known broken version of OpenLDAP,
8+
we can do `export ac_cv_member_struct_ldap_conncb_lc_arg=no` before
9+
running configure. This is rather unlikely now, as the test was done
10+
to detect a bug that was fixed 16 years ago.
11+
12+
This allows the project to be configured successfully when
13+
cross-compiling, without disabling connection callbacks.
14+
---
15+
src/external/ldap.m4 | 3 ++-
16+
1 file changed, 2 insertions(+), 1 deletion(-)
17+
18+
diff --git a/src/external/ldap.m4 b/src/external/ldap.m4
19+
index f42023cd4..09e44fc7b 100644
20+
--- a/src/external/ldap.m4
21+
+++ b/src/external/ldap.m4
22+
@@ -80,7 +80,8 @@ AC_CHECK_MEMBERS([struct ldap_conncb.lc_arg],
23+
[AC_DEFINE([HAVE_LDAP_CONNCB], [1],
24+
[Define if LDAP connection callbacks are available])],
25+
[AC_MSG_WARN([Found broken callback implementation])],
26+
- [])],
27+
+ [AC_DEFINE([HAVE_LDAP_CONNCB], [1],
28+
+ [Define if LDAP connection callbacks are available])])],
29+
[], [[#include <ldap.h>]])
30+
31+
AC_CHECK_TYPE([LDAPDerefRes],
32+
--
33+
2.34.1
34+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
The `0001-Assume-that-callbacks-are-not-broken-in-OpenLDAP-whe.patch` allows
2+
the project to be cross-compiled without disabling LDAP connection
3+
callbacks. It is being upstreamed.

sdk_container/src/third_party/coreos-overlay/profiles/coreos/amd64/generic/oem-aci/parent

Lines changed: 0 additions & 2 deletions
This file was deleted.
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
# Only ship microcode currently distributed by Intel
22
# See https://bugs.gentoo.org/654638#c11 by iucode-tool maintainer
33
sys-firmware/intel-microcode vanilla
4-
5-
# Enable gssapi only for amd64, to avoid build errors in arm64.
6-
net-dns/bind gssapi

sdk_container/src/third_party/coreos-overlay/profiles/coreos/arm64/generic/oem-aci/parent

Lines changed: 0 additions & 2 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/profiles/coreos/arm64/package.use

Lines changed: 0 additions & 4 deletions
This file was deleted.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
# Keep versions on both arches in sync.
105105
=sys-apps/kexec-tools-2.0.28 ~arm64
106106
=sys-apps/zram-generator-1.1.2-r1 ~arm64
107+
=sys-auth/sssd-2.9.5 ~arm64
107108
=sys-boot/mokutil-0.7.2 **
108109

109110
# Enable ipvsadm for arm64.

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,8 @@ sys-fs/squashfs-tools xz lz4 lzma lzo zstd
5151
# make the kernel version discoverable via the traditional gentoo symlink
5252
sys-kernel/coreos-sources symlink
5353

54-
# set build options for ssdp
55-
net-nds/openldap minimal sasl
54+
# set build options for sssd
55+
net-nds/openldap minimal sasl experimental
5656
sys-libs/glibc nscd
5757

5858
# disable database build because otherwise it tries to generate a database in /etc
@@ -100,7 +100,8 @@ sys-apps/kmod lzma
100100
app-portage/portage-utils -qmanifest
101101

102102
# Disable unnecessary regedit in samba to minimize the package size.
103-
net-fs/samba -regedit
103+
# winbind needed by sssd
104+
net-fs/samba -regedit winbind
104105

105106
# Drop extra dependencies
106107
sys-libs/ldb -lmdb -python
@@ -160,3 +161,7 @@ sys-fs/zfs minimal -rootfs
160161
# Do not tinker with /boot partition at installation time.
161162
sys-firmware/intel-microcode -initramfs
162163
sys-fs/zfs-kmod -initramfs
164+
165+
# For sys-auth/sssd
166+
net-dns/bind gssapi
167+
net-dns/bind-tools gssapi

sdk_container/src/third_party/coreos-overlay/profiles/coreos/targets/generic/oem-aci/README

Lines changed: 0 additions & 7 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/profiles/coreos/targets/generic/oem-aci/make.defaults

Lines changed: 0 additions & 47 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/profiles/coreos/targets/generic/oem-aci/package.provided

Lines changed: 0 additions & 2 deletions
This file was deleted.

sdk_container/src/third_party/coreos-overlay/profiles/coreos/targets/sdk/package.use

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,3 @@ x11-libs/pixman static-libs
3131

3232
# Get latest EDK2 firmware for Secure Boot on arm64.
3333
app-emulation/qemu -pin-upstream-blobs
34-
35-
# Enable gssapi for SDK
36-
net-dns/bind gssapi

sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/Manifest

Lines changed: 0 additions & 1 deletion
This file was deleted.

sdk_container/src/third_party/coreos-overlay/sys-auth/sssd/files/sssd

Lines changed: 0 additions & 21 deletions
This file was deleted.

0 commit comments

Comments
 (0)