forked from evolix/evocheck
improve grep in IS_USRRO
This commit is contained in:
parent
905ef88c49
commit
5bce944979
|
@ -249,7 +249,7 @@ check_apticron() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
check_usrro() {
|
check_usrro() {
|
||||||
grep /usr /etc/fstab | grep -q ro || failed "IS_USRRO" "missing ro directive on fstab for /usr"
|
grep /usr /etc/fstab | grep -qE "\bro\b" || failed "IS_USRRO" "missing ro directive on fstab for /usr"
|
||||||
}
|
}
|
||||||
check_tmpnoexec() {
|
check_tmpnoexec() {
|
||||||
FINDMNT_BIN=$(command -v findmnt)
|
FINDMNT_BIN=$(command -v findmnt)
|
||||||
|
|
Loading…
Reference in a new issue