Skip to content

Commit 81d4c25

Browse files
committed
flatcar-postinst: Remove old VMware OEM drop-in workaround
The VMware OEM units shipped already have the right settings for long time and don't require the drop-in to be created. Remove the VMware OEM drop-in workaround.
1 parent cf6f1dd commit 81d4c25

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

flatcar-postinst

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -132,27 +132,6 @@ if [ -e ${PLATFORM_PATH} ]; then
132132
fi
133133
fi
134134

135-
# Our VMware OEM partition contained a version of vmtoolsd that was vulnerable to
136-
# CVE-2015-5191 (http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5191).
137-
# This CVE can be mitigated by setting PrivateTmp=true on the vmtoolsd service file.
138-
# coreos-base/oem-vmware-10.1.5 is the last vulnerable version of the oem ebuild.
139-
# Note: we check in both /etc/oem-release and /usr/share/oem/oem-release
140-
# because pre-ignition Container Linux machines did not set the oem.id cmdline,
141-
# and also wrote oem-release only to /etc
142-
VMTOOLSD_DROPIN=/etc/systemd/system/vmtoolsd.service.d/90-tmpfiles-cve-2015-4191.conf
143-
if [ ! -e $VMTOOLSD_DROPIN ] && grep --quiet --no-messages "^ID=vmware$" /etc/oem-release /usr/share/oem/oem-release; then
144-
mkdir -p /etc/systemd/system/vmtoolsd.service.d/
145-
cat >$VMTOOLSD_DROPIN <<EOF
146-
# This file is automatically added during updates to mitigate CVE-2015-5191.
147-
# See http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2015-5191 for more info
148-
# on the CVE.
149-
# If you believe this file causes any issue, please report it as a bug to
150-
# Flatcar.
151-
[Service]
152-
PrivateTmp=true
153-
EOF
154-
fi
155-
156135
# Gather metadata about upcoming OS image.
157136
# shellcheck source=/dev/null
158137
source "${INSTALL_MNT}/lib/os-release"

0 commit comments

Comments
 (0)