mirror of
https://github.com/CISOfy/lynis.git
synced 2025-07-31 01:34:23 +02:00
pam: ignore leading dash
PAM rules may have a leading '-' character to indicate that if the module is missing, the error will be ignored, so let's ignore it in the check. Signed-off-by: Topi Miettinen <toiwoton@gmail.com>
This commit is contained in:
parent
6d9ebe4136
commit
9087de0dac
@ -96,7 +96,7 @@
|
|||||||
PAM_CONTROL_OPTIONS="-"
|
PAM_CONTROL_OPTIONS="-"
|
||||||
PAM_MODULE="-"
|
PAM_MODULE="-"
|
||||||
PAM_MODULE_OPTIONS="-"
|
PAM_MODULE_OPTIONS="-"
|
||||||
PAM_TYPE=$(echo ${LINE} | awk '{ print $1 }')
|
PAM_TYPE=$(echo ${LINE} | awk '{ print $1 }' | sed 's/^ *-//g')
|
||||||
PARSELINE=0
|
PARSELINE=0
|
||||||
case ${PAM_TYPE} in
|
case ${PAM_TYPE} in
|
||||||
"@include")
|
"@include")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user