add a noexec check

This commit is contained in:
Louis Abel 2023-11-30 01:04:41 -07:00
parent dd1d5de120
commit 7a4f15caf8
Signed by untrusted user: label
GPG Key ID: B37E62D143879B36
2 changed files with 12 additions and 0 deletions

View File

@ -46,6 +46,15 @@ function r_checkEPELEnabled() {
return $?
}
function r_checkTmpNoExec() {
grep 'tmp' /etc/fstab | grep -q noexec
tmpexec=$?
if [ "$tmpexec" -eq "0" ]; then
r_log "internal" "WARN: noexec is set for temporary directories. Some tests may fail."
fi
}
################################################################################
# Functions that deal with (p)ackages
@ -216,6 +225,7 @@ export -f r_log
export -f r_checkExitStatus
export -f r_processor
export -f r_checkEPELEnabled
export -f r_checkTmpNoExec
export -f p_installPackageNormal
export -f p_installPackageNoWeaks
export -f p_removePackage

View File

@ -38,6 +38,8 @@ if [[ "$is_epel" == "0" ]]; then
exit 1
fi
r_checkTmpNoExec
r_log "internal" "Starting Release Engineering Core Tests"
################################################################################