mirror of
https://github.com/flatcar/scripts.git
synced 2025-11-13 14:41:37 +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() {
|
cros_post_src_install_flatcar_modifications() {
|
||||||
# Flatcar: Build system installs /etc/sudoers.d, let's make
|
# Build system installs /etc/sudoers.d, let's make sure we keep
|
||||||
# sure we keep having it.
|
# having it.
|
||||||
#
|
#
|
||||||
# Upstream PR: https://github.com/gentoo/gentoo/pull/37397
|
# Upstream PR: https://github.com/gentoo/gentoo/pull/37397
|
||||||
keepdir /etc/sudoers.d
|
keepdir /etc/sudoers.d
|
||||||
|
|
||||||
|
# Move pam files to /usr.
|
||||||
|
vendorize_pam_files
|
||||||
}
|
}
|
||||||
|
|
||||||
# We don't ship OpenLDAP schemas (why?) and we provide sudo.conf
|
# 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
|
# obviously won't work in case of cross-compilation, so we state up
|
||||||
# front that SPNEGO is supported.
|
# front that SPNEGO is supported.
|
||||||
export ac_cv_gssapi_supports_spnego=yes
|
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)/perl"*
|
||||||
rm -rf "${ED}/usr/$(get_libdir)/python"*
|
rm -rf "${ED}/usr/$(get_libdir)/python"*
|
||||||
rm -rf "${ED}/var"
|
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}"
|
INSTALL_MASK+="${openssh_mask}"
|
||||||
unset openssh_mask
|
unset openssh_mask
|
||||||
fi
|
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"
|
mv "${ED}/var/lib/selinux" "${ED}/usr/lib/selinux/policy"
|
||||||
dosym -r /usr/lib/selinux/policy /var/lib/selinux
|
dosym -r /usr/lib/selinux/policy /var/lib/selinux
|
||||||
}
|
}
|
||||||
|
|
||||||
|
cros_post_src_install_vendorize_pam() {
|
||||||
|
vendorize_pam_files
|
||||||
|
}
|
||||||
|
|||||||
@ -72,4 +72,7 @@ ttyS0
|
|||||||
|
|
||||||
${devs}
|
${devs}
|
||||||
EOF
|
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
|
# New mount API does not work very well for mounting overlayfs when we
|
||||||
# are building sysexts.
|
# are building sysexts.
|
||||||
export EXTRA_ECONF="--disable-libmount-mountfd-support"
|
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.
|
# plugin, even if sssd is not running.
|
||||||
export EXTRA_ECONF="--enable-sss-default-nss-plugin"
|
export EXTRA_ECONF="--enable-sss-default-nss-plugin"
|
||||||
|
|
||||||
# We haven't switched to having pam config in /etc, so move the files
|
cros_post_src_install_flatcar_modifications() {
|
||||||
# to /usr.
|
# This is to make sure that some sssd config is always in place.
|
||||||
cros_post_src_install_move_pamd() {
|
cp -a "${ED}"/etc/sssd/sssd{-example,}.conf
|
||||||
mkdir -p "${ED}/usr/share/"
|
|
||||||
mv "${ED}/etc/pam.d" "${ED}/usr/share/pam.d"
|
|
||||||
}
|
|
||||||
|
|
||||||
# This is to make sure that some sssd config is always in place.
|
# Move pam files to /usr.
|
||||||
cros_post_src_set_initial_config() {
|
vendorize_pam_files
|
||||||
cp -a "${ED}"/etc/sssd/sssd{-example,}.conf
|
|
||||||
}
|
}
|
||||||
|
|||||||
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