cluster check fails when /tmp
is mounted with noexec
#2362
Labels
type/bug
Categorizes issue as related to a bug.
/tmp
is mounted with noexec
#2362
Bug Report
When running
tiup cluster check ...
against systems that have/tmp
mounted with thenoexec
option then TiUP fails to run the checks.noexec
option in/etc/fstab
.See also: https://github.com/ComplianceAsCode/content/blob/80b540816649e3df830691fd39477421ceb8bfea/products/rhel9/kickstart/ssg-rhel9-ccn_basic-ks.cfg#L102
Note that this is included in most security profiles that are available for Rocky Linux/RHEL9/etc:
These profiles are used for generic hardening, compliance with government regulations and compliance with PCI-DSS.
The check to run successfully. Depending on the configuration of the target machine individual checks could still fail, but the check itself would run completely and produce a report.
With
tar
installed (not part of a minimal install of Rocky Linux 9):tiup --version
)?The topology yaml that I used:
Note that part of the problematic code is this:
With a quick-and-dirty fix applied the checks now run.
Suggestions for a fix:
/tmp
. Instead use a (temporary?) subdirectory ofdeploy_dir
.tar
isn't installed. This is already in the docs: Update hardware-and-software-requirements.md docs#5228CheckToolsPathDir
configurablebin/insight
fails if possible.The text was updated successfully, but these errors were encountered: