Skip to content

Commit 318e6af

Browse files
committed
overlay coreos/config: Add vendoring of PAM files to a couple of packages
Signed-off-by: Krzesimir Nowak <knowak@microsoft.com>
1 parent 064cca2 commit 318e6af

File tree

13 files changed

+48
-12
lines changed

13 files changed

+48
-12
lines changed

sdk_container/src/third_party/coreos-overlay/coreos/config/env/app-admin/sudo

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1-
cros_post_src_install_keep_etc_sudoers_d() {
2-
# Flatcar: Build system installs /etc/sudoers.d, let's make
3-
# sure we keep having it.
1+
cros_post_src_install_flatcar_modifications() {
2+
# Build system installs /etc/sudoers.d, let's make sure we keep
3+
# having it.
44
#
55
# Upstream PR: https://github.com/gentoo/gentoo/pull/37397
66
keepdir /etc/sudoers.d
7+
8+
# Move pam files to /usr.
9+
vendorize_pam_files
710
}
811

912
# We don't ship OpenLDAP schemas (why?) and we provide sudo.conf
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cros_post_src_install_vendorize_pam() {
2+
vendorize_pam_files
3+
}

sdk_container/src/third_party/coreos-overlay/coreos/config/env/dev-libs/cyrus-sasl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,7 @@
33
# obviously won't work in case of cross-compilation, so we state up
44
# front that SPNEGO is supported.
55
export ac_cv_gssapi_supports_spnego=yes
6+
7+
cros_post_src_install_vendorize_pam() {
8+
vendorize_pam_files
9+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cros_post_src_install_vendorize_pam() {
2+
vendorize_pam_files
3+
}

sdk_container/src/third_party/coreos-overlay/coreos/config/env/net-fs/samba

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,7 @@ cros_post_src_install_samba_flatcar_modifications() {
3131
rm -rf "${ED}/usr/$(get_libdir)/perl"*
3232
rm -rf "${ED}/usr/$(get_libdir)/python"*
3333
rm -rf "${ED}/var"
34+
35+
# Move pam files to /usr.
36+
vendorize_pam_files
3437
}

sdk_container/src/third_party/coreos-overlay/coreos/config/env/net-misc/openssh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ if [[ $(flatcar_target) != 'sdk' ]] ; then
88
INSTALL_MASK+="${openssh_mask}"
99
unset openssh_mask
1010
fi
11+
12+
cros_post_src_install_vendorize_pam() {
13+
vendorize_pam_files
14+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
cros_post_src_install_vendorize_pam() {
2+
vendorize_pam_files
3+
}

sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/policycoreutils

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ cros_post_src_install_set_up_var_lib_selinux() {
1414
mv "${ED}/var/lib/selinux" "${ED}/usr/lib/selinux/policy"
1515
dosym -r /usr/lib/selinux/policy /var/lib/selinux
1616
}
17+
18+
cros_post_src_install_vendorize_pam() {
19+
vendorize_pam_files
20+
}

sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-apps/shadow

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,4 +72,7 @@ ttyS0
7272

7373
${devs}
7474
EOF
75+
76+
# Move pam files to /usr.
77+
vendorize_pam_files
7578
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
# New mount API does not work very well for mounting overlayfs when we
22
# are building sysexts.
33
export EXTRA_ECONF="--disable-libmount-mountfd-support"
4+
5+
cros_post_src_install_vendorize_pam() {
6+
vendorize_pam_files
7+
}

0 commit comments

Comments
 (0)