mirror of https://github.com/CISOfy/lynis.git
The XFS root FS is not checked (#190)
At line 431, you should maybe add some tests...
This commit is contained in:
parent
668a1fd0e5
commit
527955211b
|
@ -391,7 +391,7 @@
|
||||||
Register --test-no FILE-6368 --os Linux --weight L --network NO --root-only YES --description "Checking ACL support on root file system"
|
Register --test-no FILE-6368 --os Linux --weight L --network NO --root-only YES --description "Checking ACL support on root file system"
|
||||||
if [ ${SKIPTEST} -eq 0 ]; then
|
if [ ${SKIPTEST} -eq 0 ]; then
|
||||||
FOUND=0
|
FOUND=0
|
||||||
LogText "Test: Checking acl option on root file system"
|
LogText "Test: Checking acl option on ext[2-4] root file system"
|
||||||
FIND=`mount | ${AWKBINARY} '{ if ($3=="/" && $5~/ext[2-4]/) { print $6 } }' | grep acl`
|
FIND=`mount | ${AWKBINARY} '{ if ($3=="/" && $5~/ext[2-4]/) { print $6 } }' | grep acl`
|
||||||
if [ ! "${FIND}" = "" ]; then
|
if [ ! "${FIND}" = "" ]; then
|
||||||
LogText "Result: found ACL option"
|
LogText "Result: found ACL option"
|
||||||
|
@ -424,6 +424,13 @@
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
LogText "Test: Checking acl option on xfs root file system"
|
||||||
|
FIND=`mount | ${AWKBINARY} '{ if ($3=="/" && $5~/xfs/) { print $6 } }' | egrep 'no_acl|no_user_xattr'`
|
||||||
|
if [ "${FIND}" = "" ]; then
|
||||||
|
FOUND=1
|
||||||
|
# some other tests to do ?
|
||||||
|
fi
|
||||||
|
|
||||||
if [ ${FOUND} -eq 0 ]; then
|
if [ ${FOUND} -eq 0 ]; then
|
||||||
LogText "Result: ACL option NOT enabled on root file system"
|
LogText "Result: ACL option NOT enabled on root file system"
|
||||||
LogText "Additional information: if file access need to be more restricted, ACLs could be used. Install the acl utilities and remount the file system with the acl option"
|
LogText "Additional information: if file access need to be more restricted, ACLs could be used. Install the acl utilities and remount the file system with the acl option"
|
||||||
|
|
Loading…
Reference in New Issue