mirror of https://github.com/CISOfy/lynis.git
Added extra permission to CUPS test
This commit is contained in:
parent
66d05cf844
commit
d3d630258f
|
@ -103,13 +103,14 @@
|
|||
#
|
||||
# Test : PRNT-2307
|
||||
# Description : Check CUPSd configuration file permissions
|
||||
# To Do : Add function
|
||||
if [ ${CUPSD_FOUND} -eq 1 ]; then PREQS_MET="YES"; else PREQS_MET="NO"; fi
|
||||
Register --test-no PRNT-2307 --preqs-met ${PREQS_MET} --weight L --network NO --description "Check CUPSd configuration file permissions"
|
||||
if [ ${SKIPTEST} -eq 0 ]; then
|
||||
logtext "Test: Checking CUPS configuration file permissions"
|
||||
FIND=`ls -l ${CUPSD_CONFIG_FILE} | cut -c 2-10`
|
||||
logtext "Result: found ${FIND}"
|
||||
if [ "${FIND}" = "r--------" -o "${FIND}" = "rw-------" -o "${FIND}" = "rw-rw----" ]; then
|
||||
if [ "${FIND}" = "r--------" -o "${FIND}" = "rw-------" -o "${FIND}" = "rw-r-----" -o "${FIND}" = "rw-rw----" ]; then
|
||||
Display --indent 4 --text "- File permissions" --result "OK" --color GREEN
|
||||
AddHP 1 1
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue