mirror of
https://github.com/ovh/debian-cis.git
synced 2025-07-16 22:02:17 +02:00
Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
9c3aa51982 | |||
b994ca11a7 | |||
f4e0aafacc |
@ -32,8 +32,13 @@ audit () {
|
||||
if [ $FNRET = 0 ]; then
|
||||
ok "$FILE permissions were set to $PERMISSIONS"
|
||||
else
|
||||
ERRORS=$((ERRORS+1))
|
||||
crit "$FILE permissions were not set to $PERMISSIONS"
|
||||
has_file_correct_permissions $FILE 600
|
||||
if [ $FNRET = 0 ]; then
|
||||
ok "$FILE permissions were set to $PERMISSIONS"
|
||||
else
|
||||
ERRORS=$((ERRORS+1))
|
||||
crit "$FILE permissions were not set to $PERMISSIONS"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
||||
@ -73,8 +78,13 @@ apply () {
|
||||
if [ $FNRET = 0 ]; then
|
||||
ok "$FILE permissions were set to $PERMISSIONS"
|
||||
else
|
||||
warn "fixing $DIR SSH public keys permissions to $USER:$GROUP"
|
||||
chmod 0$PERMISSIONS $FILE
|
||||
has_file_correct_permissions $FILE 600
|
||||
if [ $FNRET = 0 ]; then
|
||||
ok "$FILE permissions were set to $PERMISSIONS"
|
||||
else
|
||||
warn "fixing $DIR SSH public keys permissions to $USER:$GROUP"
|
||||
chmod 0$PERMISSIONS $FILE
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
done
|
||||
|
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
||||
cis-hardening (2.1-3) unstable; urgency=medium
|
||||
|
||||
* Fix permissions on 5.2.3 (authorize 600)
|
||||
* Fix minor bug with --create-config-files-only
|
||||
|
||||
-- Thibault Ayanides <tayanide@ovhcloud.com> Mon, 30 Nov 2020 15:14:17 +0100
|
||||
|
||||
cis-hardening (2.1-2) unstable; urgency=medium
|
||||
|
||||
* Add --create-config-files-only mode that only create config files without running audit
|
||||
|
@ -69,7 +69,7 @@ if ! [ -r $CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg ] ; then
|
||||
|
||||
fi
|
||||
|
||||
if [ $forcedstatus = "createconfig" ]; then
|
||||
if [ "$forcedstatus" = "createconfig" ] ; then
|
||||
debug "$CIS_ROOT_DIR/etc/conf.d/$SCRIPT_NAME.cfg has been created"
|
||||
exit 0
|
||||
fi
|
||||
|
Reference in New Issue
Block a user