mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-13 06:32:14 +01:00
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:
parent
064cca2e6a
commit
318e6af8fc
@ -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
|
||||
|
||||
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-emulation/open-vm-tools
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-emulation/open-vm-tools
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
cros_post_src_install_vendorize_pam() {
|
||||
vendorize_pam_files
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-libs/libpwquality
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-libs/libpwquality
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
cros_post_src_install_vendorize_pam() {
|
||||
vendorize_pam_files
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/kbd
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/kbd
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
cros_post_src_install_vendorize_pam() {
|
||||
vendorize_pam_files
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
@ -72,4 +72,7 @@ ttyS0
|
||||
|
||||
${devs}
|
||||
EOF
|
||||
|
||||
# Move pam files to /usr.
|
||||
vendorize_pam_files
|
||||
}
|
||||
|
||||
@ -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
|
||||
}
|
||||
|
||||
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-auth/pambase
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-auth/pambase
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
cros_post_src_install_vendorize_pam() {
|
||||
vendorize_pam_files
|
||||
}
|
||||
@ -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
|
||||
}
|
||||
|
||||
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/libcap
vendored
Normal file
3
sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/libcap
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
cros_post_src_install_vendorize_pam() {
|
||||
vendorize_pam_files
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user