mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-31 01:24:58 +02:00
Fix spelling errors.
This commit is contained in:
parent
0c5dedf5d5
commit
2d1e57dca9
@ -63,7 +63,7 @@ audit_debian () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
audit_centos () {
|
audit_centos () {
|
||||||
ok "Apparmor is only support for Debian, So pass!"
|
ok "AppArmor is only support for Debian, So pass!"
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled / audit mode
|
# This function will be called if the script status is on enabled / audit mode
|
||||||
@ -105,7 +105,7 @@ apply_debian () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
apply_centos () {
|
apply_centos () {
|
||||||
ok "Apparmor is only support for Debian, So pass!"
|
ok "AppArmor is only support for Debian, So pass!"
|
||||||
}
|
}
|
||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
|
@ -15,7 +15,7 @@ set -u # One variable unset, it's over
|
|||||||
HARDENING_LEVEL=3
|
HARDENING_LEVEL=3
|
||||||
HARDENING_EXCEPTION=ntp
|
HARDENING_EXCEPTION=ntp
|
||||||
|
|
||||||
ANALOGONS_PKG='chrony'
|
ANALOGOUS_PKG='chrony'
|
||||||
PACKAGE='ntp'
|
PACKAGE='ntp'
|
||||||
NTP_CONF_DEFAULT_PATTERN='^restrict -4 default (kod nomodify notrap nopeer noquery|ignore)'
|
NTP_CONF_DEFAULT_PATTERN='^restrict -4 default (kod nomodify notrap nopeer noquery|ignore)'
|
||||||
NTP_CONF_FILE='/etc/ntp.conf'
|
NTP_CONF_FILE='/etc/ntp.conf'
|
||||||
@ -26,9 +26,9 @@ NTP_POOL_CFG='pool 2.debian.pool.ntp.org iburst'
|
|||||||
|
|
||||||
# This function will be called if the script status is on enabled / audit mode
|
# This function will be called if the script status is on enabled / audit mode
|
||||||
audit () {
|
audit () {
|
||||||
is_pkg_installed $ANALOGONS_PKG
|
is_pkg_installed $ANALOGOUS_PKG
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "Analogons pagkage $ANALOGONS_PKG is installed. So pass check."
|
ok "Analogous pagkage $ANALOGOUS_PKG is installed. So pass check."
|
||||||
else
|
else
|
||||||
is_pkg_installed $PACKAGE
|
is_pkg_installed $PACKAGE
|
||||||
if [ $FNRET != 0 ]; then
|
if [ $FNRET != 0 ]; then
|
||||||
@ -59,9 +59,9 @@ audit () {
|
|||||||
|
|
||||||
# This function will be called if the script status is on enabled mode
|
# This function will be called if the script status is on enabled mode
|
||||||
apply () {
|
apply () {
|
||||||
is_pkg_installed $ANALOGONS_PKG
|
is_pkg_installed $ANALOGOUS_PKG
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "Analogons pagkage $ANALOGONS_PKG is installed. So pass check. "
|
ok "Analogous pagkage $ANALOGOUS_PKG is installed. So pass check. "
|
||||||
else
|
else
|
||||||
is_pkg_installed $PACKAGE
|
is_pkg_installed $PACKAGE
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
|
@ -15,7 +15,7 @@ set -u # One variable unset, it's over
|
|||||||
HARDENING_LEVEL=3
|
HARDENING_LEVEL=3
|
||||||
HARDENING_EXCEPTION=ntp
|
HARDENING_EXCEPTION=ntp
|
||||||
|
|
||||||
ANALOGONS_PKG='ntp'
|
ANALOGOUS_PKG='ntp'
|
||||||
PACKAGE='chrony'
|
PACKAGE='chrony'
|
||||||
NTP_CONF_FILE='/etc/chrony/chrony.conf'
|
NTP_CONF_FILE='/etc/chrony/chrony.conf'
|
||||||
NTP_SERVER_PATTERN='^(server|pool)'
|
NTP_SERVER_PATTERN='^(server|pool)'
|
||||||
@ -26,9 +26,9 @@ audit () {
|
|||||||
if [ $OS_RELEASE -eq 2 ]; then
|
if [ $OS_RELEASE -eq 2 ]; then
|
||||||
ok "Redhat or CentOS does not have this check, so PASS"
|
ok "Redhat or CentOS does not have this check, so PASS"
|
||||||
else
|
else
|
||||||
is_pkg_installed $ANALOGONS_PKG
|
is_pkg_installed $ANALOGOUS_PKG
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "Analogons pagkage $ANALOGONS_PKG is installed. So pass check."
|
ok "Analogous pagkage $ANALOGOUS_PKG is installed. So pass check."
|
||||||
else
|
else
|
||||||
is_pkg_installed $PACKAGE
|
is_pkg_installed $PACKAGE
|
||||||
if [ $FNRET != 0 ]; then
|
if [ $FNRET != 0 ]; then
|
||||||
@ -51,9 +51,9 @@ apply () {
|
|||||||
if [ $OS_RELEASE -eq 2 ]; then
|
if [ $OS_RELEASE -eq 2 ]; then
|
||||||
ok "Redhat or CentOS does not have this check, so PASS"
|
ok "Redhat or CentOS does not have this check, so PASS"
|
||||||
else
|
else
|
||||||
is_pkg_installed $ANALOGONS_PKG
|
is_pkg_installed $ANALOGOUS_PKG
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
ok "Analogons pagkage $ANALOGONS_PKG is installed. So pass check."
|
ok "Analogous pagkage $ANALOGOUS_PKG is installed. So pass check."
|
||||||
else
|
else
|
||||||
is_pkg_installed $PACKAGE
|
is_pkg_installed $PACKAGE
|
||||||
if [ $FNRET = 0 ]; then
|
if [ $FNRET = 0 ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user