overlay coreos/config: Add vendoring of PAM files to a couple of packages

Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
This commit is contained in:
Krzesimir Nowak 2025-10-17 11:24:00 +02:00
parent 064cca2e6a
commit 318e6af8fc
13 changed files with 48 additions and 12 deletions

View File

@ -1,9 +1,12 @@
cros_post_src_install_keep_etc_sudoers_d() {
# Flatcar: Build system installs /etc/sudoers.d, let's make
# sure we keep having it.
cros_post_src_install_flatcar_modifications() {
# Build system installs /etc/sudoers.d, let's make sure we keep
# having it.
#
# Upstream PR: https://github.com/gentoo/gentoo/pull/37397
keepdir /etc/sudoers.d
# Move pam files to /usr.
vendorize_pam_files
}
# We don't ship OpenLDAP schemas (why?) and we provide sudo.conf

View File

@ -0,0 +1,3 @@
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -3,3 +3,7 @@
# obviously won't work in case of cross-compilation, so we state up
# front that SPNEGO is supported.
export ac_cv_gssapi_supports_spnego=yes
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -0,0 +1,3 @@
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -31,4 +31,7 @@ cros_post_src_install_samba_flatcar_modifications() {
rm -rf "${ED}/usr/$(get_libdir)/perl"*
rm -rf "${ED}/usr/$(get_libdir)/python"*
rm -rf "${ED}/var"
# Move pam files to /usr.
vendorize_pam_files
}

View File

@ -8,3 +8,7 @@ if [[ $(flatcar_target) != 'sdk' ]] ; then
INSTALL_MASK+="${openssh_mask}"
unset openssh_mask
fi
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -0,0 +1,3 @@
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -14,3 +14,7 @@ cros_post_src_install_set_up_var_lib_selinux() {
mv "${ED}/var/lib/selinux" "${ED}/usr/lib/selinux/policy"
dosym -r /usr/lib/selinux/policy /var/lib/selinux
}
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -72,4 +72,7 @@ ttyS0
${devs}
EOF
# Move pam files to /usr.
vendorize_pam_files
}

View File

@ -1,3 +1,7 @@
# New mount API does not work very well for mounting overlayfs when we
# are building sysexts.
export EXTRA_ECONF="--disable-libmount-mountfd-support"
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -0,0 +1,3 @@
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}

View File

@ -2,14 +2,10 @@
# plugin, even if sssd is not running.
export EXTRA_ECONF="--enable-sss-default-nss-plugin"
# We haven't switched to having pam config in /etc, so move the files
# to /usr.
cros_post_src_install_move_pamd() {
mkdir -p "${ED}/usr/share/"
mv "${ED}/etc/pam.d" "${ED}/usr/share/pam.d"
}
cros_post_src_install_flatcar_modifications() {
# This is to make sure that some sssd config is always in place.
cp -a "${ED}"/etc/sssd/sssd{-example,}.conf
# This is to make sure that some sssd config is always in place.
cros_post_src_set_initial_config() {
cp -a "${ED}"/etc/sssd/sssd{-example,}.conf
# Move pam files to /usr.
vendorize_pam_files
}

View File

@ -0,0 +1,3 @@
cros_post_src_install_vendorize_pam() {
vendorize_pam_files
}