mirror of
https://github.com/hardenedlinux/harbian-audit.git
synced 2025-07-30 00:55:49 +02:00
Modify audit method of 2.1_tmp_partition.sh.
This commit is contained in:
parent
a9c8380c2e
commit
d517075d64
@ -1,9 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# CIS Debian 7/8 Hardening
|
# harbian audit Debian 9 Hardening
|
||||||
# Authors : Thibault Dewailly, OVH <thibault.dewailly@corp.ovh.com>
|
# Authors : Thibault Dewailly, OVH <thibault.dewailly@corp.ovh.com>
|
||||||
#
|
# Authors : Samson wen, Samson <sccxboy@gmail.com>
|
||||||
|
|
||||||
#
|
#
|
||||||
# Main script : Execute hardening considering configuration
|
# Main script : Execute hardening considering configuration
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# CIS Debian 7/8 Hardening
|
# harbian audit Debian 9 Hardening
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
#
|
#
|
||||||
# CIS Debian 7/8 Hardening
|
# harbian audit Debian 9 Hardening
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
@ -20,21 +20,13 @@ PARTITION="/tmp"
|
|||||||
audit () {
|
audit () {
|
||||||
info "Verifying that $PARTITION is a partition"
|
info "Verifying that $PARTITION is a partition"
|
||||||
FNRET=0
|
FNRET=0
|
||||||
is_a_partition "$PARTITION"
|
is_mounted "$PARTITION"
|
||||||
if [ $FNRET -gt 0 ]; then
|
if [ $FNRET -gt 0 ]; then
|
||||||
crit "$PARTITION is not a partition"
|
crit "$PARTITION is not mounted"
|
||||||
FNRET=2
|
FNRET=1
|
||||||
else
|
else
|
||||||
ok "$PARTITION is a partition"
|
ok "$PARTITION is mounted"
|
||||||
is_mounted "$PARTITION"
|
|
||||||
if [ $FNRET -gt 0 ]; then
|
|
||||||
warn "$PARTITION is not mounted"
|
|
||||||
FNRET=1
|
|
||||||
else
|
|
||||||
ok "$PARTITION is mounted"
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
:
|
:
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user