diff --git a/modules/vm_hardenning.sh b/modules/vm_hardenning.sh new file mode 100644 index 0000000..54a254a --- /dev/null +++ b/modules/vm_hardenning.sh @@ -0,0 +1,34 @@ +# ------------------------------------------------------------------------------ +# Hardenning for VM/Cloud kind of machine +# This file is part of the init.sh project +# Copyright (c) 2019-2021 Geoffray Levasseur +# ------------------------------------------------------------------------------ +# This file is distributed under 3-clause BSD license. +# The complete license agreement can be obtained at: +# https://opensource.org/licenses/BSD-3-Clause +# ------------------------------------------------------------------------------ +# Variables: +# * WITH_ROUTING: if yes, kernel routing capabilities will not be disabled +# ------------------------------------------------------------------------------ + +export VER_vm_hardenning="0.0.1" + +vm_hardenning() +{ + prnt I "Installing VM/Cloud kernel..." + pkginst linux-image-cloud-amd64 + + if [[ $WITH_ROUTING == yes ]]; then + # do it! + fi +} + +precheck_vm_hardenning() +{ + : +} + +export -f vm_hardenning +export -f precheck_vm_hardenning + +# EOF