forked from sig_core/toolkit
add a noexec check
This commit is contained in:
parent
dd1d5de120
commit
7a4f15caf8
@ -46,6 +46,15 @@ function r_checkEPELEnabled() {
|
|||||||
return $?
|
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
|
# Functions that deal with (p)ackages
|
||||||
|
|
||||||
@ -216,6 +225,7 @@ export -f r_log
|
|||||||
export -f r_checkExitStatus
|
export -f r_checkExitStatus
|
||||||
export -f r_processor
|
export -f r_processor
|
||||||
export -f r_checkEPELEnabled
|
export -f r_checkEPELEnabled
|
||||||
|
export -f r_checkTmpNoExec
|
||||||
export -f p_installPackageNormal
|
export -f p_installPackageNormal
|
||||||
export -f p_installPackageNoWeaks
|
export -f p_installPackageNoWeaks
|
||||||
export -f p_removePackage
|
export -f p_removePackage
|
||||||
|
@ -38,6 +38,8 @@ if [[ "$is_epel" == "0" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
r_checkTmpNoExec
|
||||||
|
|
||||||
r_log "internal" "Starting Release Engineering Core Tests"
|
r_log "internal" "Starting Release Engineering Core Tests"
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user